How can I check if a URL exists via PHP?

前端 未结 22 1702
天涯浪人
天涯浪人 2020-11-22 04:13

How do I check if a URL exists (not 404) in PHP?

22条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 05:13

    you cannot use curl in certain servers u can use this code

    
    

提交回复
热议问题