![](/img/trans.png)
[英]Chrome Extension referencing/calling other script functions from a content script
[英]PHP referencing functions not in a script
有人可以告诉我PHP脚本可以从哪里获得此功能,我有一个包含以下几行内容的PHP脚本:
<?php
$args1 = array();
$gethosts = get_xml_host_objects($args1); //grabbing internal xml data from backend
$args2 = array();
$gethoststatus = get_xml_host_status($args2);
$args3 = array();
$getparenthosts = get_xml_host_parents($args3);
因此,我不知道该PHP脚本从何处以及如何引用这些函数,有人可以给我一些示例,以了解在哪里查找吗?
看起来这些是自定义函数,也许您可以在整个源代码树中尝试grep,以查看哪个.php文件定义了这些函数并将其包含在此脚本中。
也许有一个包含两个脚本的文件。 像这样的东西
<?php
include 'file_with_function.php';
include 'your_file.php';
?>
这些行会有所帮助。 将它们放在文件的开头
echo '<pre>';
debug_print_backtrace();
echo '</pre>';
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.