[thelist] Call a php script on another server?

Travis Brunn rabbit_fufu at hotmail.com
Wed May 31 17:13:16 CDT 2006

Thanks for the quick response!
> http://us3.php.net/include/ > Example 16-7. include() through HTTP > That's one way - cheating and making it look like inline code.
Neat.  Something like that might work.  One question more, if I may...
Is there anything particularly bad about doing something like this...
<?phpecho "here is output from a remote secret script: ";readfile (http://www.myremoteserver.com/outputstuff.php?pw=secret);?>
...and passing a password in the querystring as a safeguard?  (So that if the script was executed without the password it wouldn't output any content?)

> Date: Wed, 31 May 2006 13:02:15 -0700> From: anthony at baratta.com> To: lists.evolt.org thelist at lists.evolt.org> Subject: Re: [thelist] Call a php script on another server?> > Take a look here:> > http://us3.php.net/include/> > Example 16-7. include() through HTTP> > That's one way - cheating and making it look like inline code.> > Another way is to just pass data via a query string and harvest the response as if your PHP script was a browser:> > http://us3.php.net/manual/en/ref.curl.php> > OR> > http://us3.php.net/manual/en/function.file-get-contents.php> > I think PEAR might have something like this too. Not sure.> > -- > > * * Please support the community that supports you.  * *> http://evolt.org/help_support_evolt/> > For unsubscribe and other options, including the Tip Harvester > and archives of thelist go to: http://lists.evolt.org > Workers of the Web, evolt ! 
Express yourself instantly with MSN Messenger! Download today it's FREE!

More information about the thelist mailing list