...

View Full Version : Php client tutorial?



iceflyin
11-19-2007, 05:41 AM
Does anyone know where I could find a basic php client tutorial?

Eg: I have a website, and I want to allow a user to login to another website via my php script so they can retrieve their data with my script. I already use fopen to do kinda the job without a login, but I kinda need it to be better now.


Basically, I want the user to be able to login, and get the content... A subscription RSS feed on another website that requires them to login.

I guess I would want to do a cross-website post request to the login, but how do I keep my php script logged with how websites have cookies and sessions?



if ($f = @fopen("$url", 'r')) {
$content = '';
while (!feof($f)) {
$content .= fgets($f, 4096);
}
fclose($f);
}

//My parsing script is below. V



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum