PDA

View Full Version : How...



Blinger1
12-11-2008, 11:10 AM
Is it possible to remote login to a website with PHP?

For instance, I want to login to myspace through my own PHP script to say that a friend of mine is a friend (thus allowing me to get their data, [how many comments they have, total friends, etc.] Is this possible?

Invent
12-11-2008, 11:16 AM
Yes, you can use the PHP extension cURL or simply use sockets.

I can't help you any more though as I may not be allowed to go in to detail, but if you want to know how to use cURL just visit php.net/curl (http://php.net/curl)

Blinger1
12-11-2008, 11:27 AM
mm, but the problem is, i have a script, it gets some things from any myspace page. And if it was a cURL doesn't that mean i would have to login manually

Invent
12-11-2008, 11:39 AM
You use cURL to send your login details to the MySpace login age and then to store the cookies MySpace creates to keep you logged in.

Blinger1
12-11-2008, 11:42 AM
Oh okay!!

Sounds too confusing for such little use..

Want to hide these adverts? Register an account for free!