In our application there's a form where the user types in a web
address. To make sure the URL is correct our PHP code does something
like:
if(fopen($url, "r")) {
/* saves the info */
}
else {
/* print out a error message */
}
This was working fine until recently. Now when an invalid domain name
(e.g. wwww.djsahjkfhf .com) is typed in, fopen() just freezes.
Does anyone know what's going on?
address. To make sure the URL is correct our PHP code does something
like:
if(fopen($url, "r")) {
/* saves the info */
}
else {
/* print out a error message */
}
This was working fine until recently. Now when an invalid domain name
(e.g. wwww.djsahjkfhf .com) is typed in, fopen() just freezes.
Does anyone know what's going on?
Comment