PHP Get Data from External Server
Moderator: General Moderators
-
BriceHulse
- Forum Newbie
- Posts: 2
- Joined: Tue Dec 22, 2009 11:03 am
PHP Get Data from External Server
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
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
Be more specific about how the "external server" validates a username and password. And for future reference,
- file_get_contents
- cURL