galvin Posted October 21, 2011 Share Posted October 21, 2011 Weird question, but is there a way using PHP to "check" to see if a certain URL brings up an actual real page, or if it brings up a 404 error or something? Any functions do anything like that? Quote Link to comment https://forums.phpfreaks.com/topic/249560-check-if-url-works-or-not/ Share on other sites More sharing options...
xtopolis Posted October 21, 2011 Share Posted October 21, 2011 Yes. Use the cURL library. Quote Link to comment https://forums.phpfreaks.com/topic/249560-check-if-url-works-or-not/#findComment-1281237 Share on other sites More sharing options...
requinix Posted October 21, 2011 Share Posted October 21, 2011 get_headers is another option. Quote Link to comment https://forums.phpfreaks.com/topic/249560-check-if-url-works-or-not/#findComment-1281253 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.