i donot want to increase time of executtion ...
Code: Select all
if($Content = file_get_contents($url,FALSE,NULL,0,10) //if successfully get content in 10 seconds
{
run code ....
}
else if(time exceed by 10 second)then
{
run this code
}