How to fetch member page by PHP?

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
iamjhlee
Forum Newbie
Posts: 2
Joined: Wed Aug 23, 2006 4:51 am

How to fetch member page by PHP?

Post by iamjhlee »

Hi my friends:

I am write a small program by PHP to login into a remote site and fetch member page. (by fopen)
But the authentication is not by standard but rather like session or cookie.

How can I fetch the member page? I can fetch the page after login, but I cannot fetch
other pages.

Your help is appreciated, thanks a lot.

Jerry :?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

Use cURL .. it supports cookies (and therefore sessions) just like a browser.
iamjhlee
Forum Newbie
Posts: 2
Joined: Wed Aug 23, 2006 4:51 am

Thanks Onion

Post by iamjhlee »

onion2k wrote:Use cURL .. it supports cookies (and therefore sessions) just like a browser.
Thanks Onion!
It looks really difficult of cURL. I'll try it.

-
Jerry
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

curl is rather easy unless you need to go through convoluted ways of getting communication out of the server. Post back with your problems if you hit something.
Post Reply