PHP Programming

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chvol
Forum Newbie
Posts: 20
Joined: Fri Apr 26, 2002 2:49 pm

PHP Programming

Post 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
samscripts
Forum Commoner
Posts: 57
Joined: Tue Apr 23, 2002 4:34 pm
Location: London, UK

Post 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
james.aimonetti
Forum Newbie
Posts: 6
Joined: Tue Jan 30, 2007 10:44 pm

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

cURL.

If you need help installing PHP, read the PH manual.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Thread really really really really old.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Frick. Once again, my stupidity rears it's ugly head.
Post Reply