php url_exists function for https urls
<pre>function url_exists($url) {
        $return = false;
        $content=@file_get_contents($url, FALSE, NULL, 0, 20);
        if($content == false ) {
            $return = false;
        } else if (count($content) </pre>

<p>How to modify this function to check on content on https URLS as well. This is currently not able to check existense of file there.</p>
