![]() |
Link Error Checking
Is there a way to check to see if a link comes up with an error and if so then load an alternate link?
For example, say I have a link to a file on another server, if that link is down, can it then load the alternate link? |
Quote:
|
You would need to write the code in php to download the header for the webpage, then if it returns a "not found" (404?) error message, have your php script spit out the alternate link. This will be very slow. You may not want to do it. I'd look for an alternative unless this is really low-volume e.g. for your personal use.
|
You would need to write the code in php to download the header for the webpage, then if it returns a "not found" (404?) error message.
|
thanks for the links
|
hi
please use fopen command to check 404 link |
Yeah you can use the fopen command to check link error.
|
May be none
|
use online back link checker tools and solve your issues
|
Link error checking
You can use different tools like w3cvalidator, link checker, etc to fix your link error.
|
All times are GMT -7. The time now is 03:33 AM. |
Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.