PHP 4.0 Bug #6682 Updated: remote require is not perfect

From: Date: Tue, 12 Sep 2000 17:39:59 +0000
Subject: PHP 4.0 Bug #6682 Updated: remote require is not perfect
Groups: php.dev 
Request: Send a blank email to php-dev+get-32993@lists.php.net to get a copy of this message
ID: 6682 Updated by: stas Reported By: tmnja@yahoo.com Status: Closed Bug Type: Scripting Engine problem Assigned To: Comments: Yes, this is how it works. Please read the manual about it. Previous Comments: --------------------------------------------------------------------------- [2000-09-12 11:15:15] tmnja@yahoo.com 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 --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6682

« previous php.dev (#32993) next »