Jump to content

Check Url Is Valid With Php


ProblemHelpPlease
 Share

Recommended Posts

You can use fsockopen to open a connection to a remote server, or if the URL wrapper is enabled on your server then you can use file_get_contents to get a specific file. It would be worth testing that to see what it returns when you try to load a file that you know doesn't exist. You can also use the CURL library as a replacement for the fsock functions.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...