PHP 4.0 Bug #6682: remote require is not perfect
| From: | tmnja at yahoo dot com | Date: | Tue, 12 Sep 2000 15:15:15 +0000 |
| Subject: | PHP 4.0 Bug #6682: remote require is not perfect | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-32983@lists.php.net to get a copy of this message | ||
From: tmnja@yahoo.com
Operating system: Linux RedHat 6.0
PHP version: 4.0.1pl2
PHP Bug Type: Scripting Engine problem
Bug description: remote require is not perfect
1st file in my working machine is
---------------------------------
<?
require ("http://targetDomain/test_remote.php");
testPr();
?>
2nd file on targetDomain(other machine) is
------------------------------------------
<?
echo("this is test_remote.php");
function testPr() {
echo("remote : testPr()");
}
?>
When I execute 1st file, it prints out :
----------------------------------------
this is test_remote.php
Fatal error: Call to undefined function: testpr()
in 1st file on line 3
I know that the 1st file required the 2nd file successfully because it printed out the echo
statement of 2nd file.
However I cannot understand why it cannot use the function of the remote file.
OS : ReaHat 6.0
PHP : 4.0
apache : 1.3