I want to check the url
http://example.com/file.txt
exist or not in php. How can I do it?
I want to check the url http://example.com/file.txt exist or not in php. How can
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is the easiest way to do it. If you are unfamiliar with the
@, that will instruct the function to return false if it would have otherwise thrown an error