Catch When cURL can't connect to webserver
If a domain is invalid or a web server is down, cURL will return false and not have a status code. We need to catch it and distinguish the difference between page not found and cannot connect for the user.
This commit is contained in:
BIN
img/domainfailed.jpg
Normal file
BIN
img/domainfailed.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
BIN
img/pagefailed.jpg
Normal file
BIN
img/pagefailed.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
Reference in New Issue
Block a user