我想從YouTube獲取數據,我正在使用file_get_contents()
方法。file_get_contents()與youtube無法正常工作
有時它工作正常,但有時它不工作,並顯示以下錯誤
file_get_contents() [function.file-get-contents]: SSL: crypto enabling timeout
file_get_contents() [function.file-get-contents]: Failed to enable crypto
file_get_contents(https://gdata.youtube.com/feeds/api/users/default?access_token=token&v=2&alt=json) [function.file-get-contents]: failed to open stream: operation failed
Maximum execution time of 30 seconds exceeded
是什麼上述錯誤是什麼意思?
什麼是SSL: crypto enabling timeout
你可以在瀏覽器中打開網址嗎? –
是的。它在瀏覽器中正常顯示 –
請閱讀我的回答@Rana。 –