我一直在使用get_meta_tags()和get_headers()PHP函数,并且需要在网站缓慢或无响应的情况下设置超时值.有谁知道怎么做?
php timeout get-headers
在PHP中,我使用的get_meta_tags()和get_headers(),但是,当有一个404,这两个函数抛出一个警告.有什么办法让我抓住它吗?谢谢!
get_meta_tags()
get_headers()
php exception-handling get-headers
get-headers ×2
php ×2
exception-handling ×1
timeout ×1