sorry for my English
I use file_get_contents
function to get the HTML content of "www.example.com" as string and then process this string.
My problem is when this website take a lot of time to open, I want to set time out for a part of my script (not all script) so that if file_get_contents
function take much time, my script will stop it and continue to next lines.
I am using php5
is it possible to do this, I appreciate all your suggestions
example:
//set time out = 10S
$siteStr = @file_get_contents("www.example.com");
//10S is finished so stop file_get_contents and continue