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? 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. 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. 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
Archived
This topic is now archived and is closed to further replies.