2010-11-30 84 views
0
function url_exists($url) { 
     $return = false; 
     [email protected]_get_contents($url, FALSE, NULL, 0, 20); 
     if($content == false) { 
      $return = false; 
     } else if (count($content)

如何修改此功能以檢查https URL上的內容。目前這無法檢查文件的存在。php url_exists功能https鏈接

+1

你可以使用cURL嗎? – 2010-11-30 11:52:22

+0

我可以使用。但不知道如何幫助你。 – 2010-11-30 11:56:34

回答

1

刪除沉默運算符@並查看得到的錯誤。

0

您是否嘗試過支持URL的PHP​​ file_exists()

+0

爲了回答我自己:這似乎不起作用 - file_exists不支持URL上的統計信息。 – acme 2010-11-30 11:57:43