Using data from another webpage

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
RedRasper
Forum Commoner
Posts: 48
Joined: Thu Apr 24, 2003 6:36 am

Using data from another webpage

Post by RedRasper »

Hello!

I wondered if anyone can help me, I'm posting soem data from a webpage that is mine to one that isn't mine. When this other webpage is called it displays some information such as success or fail.

Is there any way to get that data that is on this page?

I hope that make sense!

RedRasper
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post by []InTeR[] »

If you look @ fopen you see that you can use url's instead of files.
RedRasper
Forum Commoner
Posts: 48
Joined: Thu Apr 24, 2003 6:36 am

Post by RedRasper »

Hi,

Thanks for your help

Just looking at that, but it doesn't seem I can post data to the url and then get the results back.

Or did I miss something?

RedRasper
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

If the remote page you are accessing use GET parameters to pass data than you can include them in the URL. If the page uses POST, can can look at use the CURL library to create full post based requests and retreive the results.
RedRasper
Forum Commoner
Posts: 48
Joined: Thu Apr 24, 2003 6:36 am

Post by RedRasper »

HI,

Thanks for the response, I'll take a look into curl!

Cheers

RedRasper
Post Reply