I don’t really want to use curl or anything complex like that.
I was looking for a simple way to check if the url (User will enter the url and it is then stored in my MySQL database) is valid and that it is a valid url i.e. the domain exists.
Is fopen a good solution?
Any tutorials or tips on this would be greatly appreciated.
CURL isn’t that complex. To get the http status of a url:
A regex or filter would validate that the url is valid but not that it exists. A DNS lookup validates that the domain exists, but not the url.