I am using LoadHTMLFile("http://www.otherwist.com/
") to load the html file from remote site's root in PHP
and I found sometimes it can be hang up the program because the link at remote site is not ready yet.
But how I can set timer in php if the waiting for LoadHTMlFile() function is more than 10 seconds, and then re-do it again ? That is my first question.
THe second question in other case, if php run it and quit the program since it has fatal-error, how can restart it
the php program again automatically ? Is the function existing in PHP like on error resume next or goto A1: in VBA ?