I would like to write a program in PHP that calls another web site (URL), feeds it its input, and gets back the output in PHP variables. It would be as if a user accessed the site, but PHP would do it and have the page output returned to the PHP program in its variables.
I got PHP by downloading PHPTriad to my Windows 98 PC, which includes Apache webserver.
Thanks
Charlie
chvol@aol.com
PHP Programming
Moderator: General Moderators
-
samscripts
- Forum Commoner
- Posts: 57
- Joined: Tue Apr 23, 2002 4:34 pm
- Location: London, UK
Hi, I think that there are several classes on http://www.phpclasses.org that make it simple to do this. Look in the http section.
Haven't actually tried any of them myself tho
Sam
Haven't actually tried any of them myself tho
Sam
-
james.aimonetti
- Forum Newbie
- Posts: 6
- Joined: Tue Jan 30, 2007 10:44 pm
http://pear.php.net is also a pretty sweet resource with an easy installation procedure. Look for the HTTP_Request and HTTP_Client packages; see if either meets your need or helps you get closer to a solution.
Also, if you are maintaining the other URL, doing a XML_RPC server and client is pretty simple with the aptly named Pear packages. I used that for a fitness tracking web app so we could develop blog plugins and desktop widgets to read data from the server. Basically our web front-end was just another client that read data from the server.
Also, if you are maintaining the other URL, doing a XML_RPC server and client is pretty simple with the aptly named Pear packages. I used that for a fitness tracking web app so we could develop blog plugins and desktop widgets to read data from the server. Basically our web front-end was just another client that read data from the server.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA