Re: [PHP] require using url
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]
RE: [PHP] require using url
Yeah the file is on a HTTP server. I don't exactly get the source code showing though as it is enclosed in php tags and the HTTP server is running php. Thanks, Nigel On Wed, 8 Aug 2001, Bruin, Bolke de wrote: > Is that file living on a HTTP server which PARSES the function? Eg do you > get > the source code when directly requesting it from a browser or an empty page > (or whatever) > > Bolke > > -Oorspronkelijk bericht- > Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Verzonden: Wednesday, August 08, 2001 6:20 PM > Aan: Tyler Longren > CC: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Onderwerp: Re: [PHP] require using url > > > 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 > > [EMAIL PROTECTED] > > 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) > > <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > 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] > > -- > 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] > > -- 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]
RE: [PHP] require using url
Is that file living on a HTTP server which PARSES the function? Eg do you get the source code when directly requesting it from a browser or an empty page (or whatever) Bolke -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Verzonden: Wednesday, August 08, 2001 6:20 PM Aan: Tyler Longren CC: [EMAIL PROTECTED]; [EMAIL PROTECTED] Onderwerp: Re: [PHP] require using url 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 > [EMAIL PROTECTED] > 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) > <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- 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] -- 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]
Re: [PHP] require using url
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 > [EMAIL PROTECTED] > 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) > <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- 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]
Re: [PHP] require using url
What's on line 51? The error is on line 51 in survey.php. require() Tyler Longren Captain Jack Communications [EMAIL PROTECTED] 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) <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- 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]
[PHP] require using url
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]