RE: [PHP] require using url
| From: | Nigel_Soon at advanis dot ca | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | RE: [PHP] require using url | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61859@lists.php.net to get a copy of this message | ||
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: Nigel_Soon@advanis.ca [mailto:Nigel_Soon@advanis.ca]
> Verzonden: Wednesday, August 08, 2001 6:20 PM
> Aan: Tyler Longren
> CC: Nigel_Soon@advanis.ca; php-general@lists.php.net
> 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
> > 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
> > >
> >
>
>
> --
> 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
>
> --
> 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
>
>