ProblemHelpPlease Posted August 7, 2009 Report Share Posted August 7, 2009 I have around 75,000 links the URL's of which use data generated from databases. The should all work having been URL encoded but I was wondering if there was a way to check the links are vaild without viewing them.Any ideas Link to comment Share on other sites More sharing options...
justsomeguy Posted August 7, 2009 Report Share Posted August 7, 2009 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now