Page 1 of 1

PHP Get Data from External Server

Posted: Wed Dec 23, 2009 11:31 pm
by BriceHulse
I'm trying to write APIs for my social network. I want a function that takes input for a username and password, checks it on my external server, and then sets a cookie if it is correct. Can anyone help with the API code and the external code on my social network's server? Thanks

Re: PHP Get Data from External Server

Posted: Wed Dec 23, 2009 11:33 pm
by requinix
You know you can't set a cookie for another site, right?

Be more specific about how the "external server" validates a username and password. And for future reference,
- file_get_contents
- cURL