On Wednesday 08 August 2001 18:08, [EMAIL PROTECTED] 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)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]