driveflexfuel
New Member
- Messages
- 159
- Reaction score
- 0
- Points
- 0
I am using file_get_contents('http://www.site.com'); to connect to another one of my sites to retrieve information. If for some reason my site is down i need it to prompt the script.
Example
$info = file_get_contents('http://www.site.com/updates/index.php');
If there is no error
echo $info
else
Echo "unable to check updates at this time.";
Example
$info = file_get_contents('http://www.site.com/updates/index.php');
If there is no error
echo $info
else
Echo "unable to check updates at this time.";