我想从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。 –