Include Problem!
Posted: Fri Sep 23, 2005 1:51 am
Why won't this work!!!???
Both files are located in the same directory. I NEED to keep it an absolute path!
index.php:
library.php:
It results in:
In File
PHP Fatal error: Call to undefined function: test_function() in E:\Web\snippets\Php\include_issue\index.php on line 5
Both files are located in the same directory. I NEED to keep it an absolute path!
index.php:
Code: Select all
<?
include('http://localhost/snippets/Php/include_issue/library.php');
test_function();
?>Code: Select all
<?
echo "In File <br/>";
function test_function()
{
echo "In Function";
}
?>In File
PHP Fatal error: Call to undefined function: test_function() in E:\Web\snippets\Php\include_issue\index.php on line 5