[thelist] Call a php script on another server?

Anthony Baratta anthony at baratta.com
Wed May 31 15:02:15 CDT 2006


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.




More information about the thelist mailing list