Page 1 of 1

PHP Programming

Posted: Fri Apr 26, 2002 2:49 pm
by chvol
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

Posted: Fri Apr 26, 2002 3:25 pm
by samscripts
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 :D

Sam

Posted: Sun Feb 11, 2007 1:30 am
by james.aimonetti
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.

Posted: Sun Feb 11, 2007 10:12 am
by RobertGonzalez
cURL.

If you need help installing PHP, read the PH manual.

Posted: Sun Feb 11, 2007 11:30 am
by feyd
Thread really really really really old.

Posted: Sun Feb 11, 2007 11:50 am
by RobertGonzalez
Frick. Once again, my stupidity rears it's ugly head.