Re: require using url

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: require using url
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61854@lists.php.net to get a copy of this message
Line 51 has a call to login(). The login() function is in functions.php which lives on a different server. I try to use functions.php by putting the require statement in survey.php. This works when they both live on the same server but when I try using require with the url to a remote server it fails. Cheers, Nigel On Wed, 8 Aug 2001, Tyler Longren wrote: > What's on line 51? The error is on line 51 in survey.php. require() > > Tyler Longren > Captain Jack Communications > tyler@captainjack.com > www.captainjack.com > > isn't on line 51. The error occurs because there's no login() function. > > > > On Wed, 8 Aug 2001 10:08:01 -0600 (Mountain Daylight Time) > <Nigel_Soon@advanis.ca> wrote: > > > Hi, > > > > I'm having a problem using require with a url. What I'm trying to do is > > have a php script on a server that calls a file on another server using > > require. The file that is called on the other server contains php > > functions that the calling php script uses. > > > > I my attempts so far I get: > > Fatal error: Call to undefined function: login() in > > /usr/home/nigels/public_html/survey01/survey.php on line 51 > > > > survey.php is the script that has the require line: > > > > require("http://host.server.com/functions.php"); > > > > I really appreciate your help. > > > > Thanks, > > > > Nigel > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.general (#61854) next »