best way to send a remote request
Posted: Wed Jan 16, 2008 4:58 pm
Howdy partners,
I'm working on an api to a central database. I figured I could send an http request to a script of mine and have it output 1 or 0 (for true or false).
However this relies on the allow_url_fopen configuration in php.ini. How can I go about getting around that?
I'm working on an api to a central database. I figured I could send an http request to a script of mine and have it output 1 or 0 (for true or false).
Code: Select all
public function check()
{
return (bool) file_get_contents('http://www.example.com/check.php?user=' . $this->_user);
}