I have a curl script that I would like to wrap in an if condition to proceed anyway if the page isnt loading. Is it possible to check page load time > if taking too long > proceed anyway?
if(pageLoad != TooMuchTime {
//Curl script to some url
} else {
//Took to long to get a responce
}
The reason I do this is because I use a curl request as part of an install script (to track installs) the curl call is to a php file which inserts data to the database. If for any reason (network congestion, site down, ect.) the page doesn't load I want the user to still be able to install the product.