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

From: Date: Tue, 12 Sep 2000 06:27:19 +0000
Subject: Re: PHP 4.0 Bug #6682 Updated: remote require is not perfect
Groups: php.dev 
Request: Send a blank email to php-dev+get-33002@lists.php.net to get a copy of this message
Thank you for your reply. Actually I read the manual about require, include, remote file accessing, fopen many times. However I couldn't get what I want. I want to make my php script to use the function that is defined in other file on remote host. If the example that I mentioned is not bug, there must be a way to do what I want. Can you tell me how to do that ? Actually, I tried another way. I changed the extension of the file on remote server into .txt. Then it worked. Can you explain to me how this works ? Thanks in advance. Taemin. --- Bug Database <php-dev@lists.php.net> wrote: > 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 > __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/

« previous php.dev (#33002) next »