PHP 引用不在脚本中的函数


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 脚本从哪里以及如何引用这些函数,有人可以给我一些关于在哪里查找的示例建议吗?

也许,有一个包含这两个脚本的文件。类似的东西

<?php
    include 'file_with_function.php';
    include 'your_file.php';
?>

这些线条可以提供帮助。将它们放在文件的开头

echo '<pre>';  
debug_print_backtrace();  
echo '</pre>';

看起来这些是自定义函数,也许您可以尝试通过整个源代码树进行 grep 检查哪个.php文件定义了这些函数并将其包含在此脚本中。