Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Regarding your update, about not wanting to wait for the full page to load - I think a HTTP <code>HEAD</code> request is what you're looking for..</p> <p><a href="http://nl3.php.net/get-headers" rel="nofollow noreferrer">get_headers</a> should do this - I think it only requests the headers, so will not be sent the full page content.</p> <p><a href="https://stackoverflow.com/questions/770179/php-curl-head-request-takes-a-long-time-on-some-sites">"PHP / Curl: HEAD Request takes a long time on some sites"</a> describes how to do a <code>HEAD</code> request using PHP/Curl</p> <p>If you want to trigger the request, and not hold up the script at all, there are a few ways, of varying complexities..</p> <ul> <li>Execute the HTTP request as a background process, <a href="https://stackoverflow.com/questions/45953/php-execute-a-background-process/45966">php execute a background process</a> - basically you would execute something like <code>"wget -O /dev/null $carefully_escaped_url"</code> - this will be platform specific, and you have to be <em>really</em> careful about escaping parameters to the command</li> <li><a href="http://www.welldonesoft.com/technology/articles/php/forking/" rel="nofollow noreferrer">Executing a PHP script in the background</a> - basically the same as the UNIX process method, but executing a PHP script rather than a shell command</li> <li>Have a "job queue", using a database (or something like <a href="http://xph.us/software/beanstalkd/" rel="nofollow noreferrer">beanstalkd</a> which is likely overkill). You add a URL to the queue, and a background process or cron-job routinely checks for new jobs and performs requests on the URL</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload