Re: require using url

From: Date: Thu, 09 Aug 2001 12:35:08 +0000
Subject: Re: require using url
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61985@lists.php.net to get a copy of this message
On Wednesday 08 August 2001 18:08, Nigel_Soon@advanis.ca wrote: > 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"); That means your server does a HHTP request to http://host.server.com/functions.php , get's back the *output* of functions.php and includes that (assuming host.server.com uses PHP). -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) "World domination. Fast." (Linus Torvalds about Linux)

« previous php.general (#61985) next »