可以说,我通过PHP如何调用包含文件的功能
include "Services.php";
使文件
Services.php
<?php
$myGlobalVar='ranSTR';
function serv1($num)
{
//some processing...
return $num;
}
function serv2($num)
{
//some processing...
return $num;
}
?>
,我包括在其他一些文件可以说myFile.php
或
require "Services.php";
- 我如何可以调用它的功能myFile.php
我试过,但我不断收到致命错误:调用未定义的函数 – 2016-06-18 08:23:32
对不起,我发现我需要像这样的页面的问题:需要(“HTTP://本地主机/路径/到/required/file.php“); – 2016-06-18 08:28:41