View Single Post
Old 08-31-07, 11:52 AM   #12
radekhulan's Avatar
Join Date: Apr 2005
Location: Prague
Posts: 749
Default Re: Detecting Bad Links

Originally Posted by evilghost
He want's a client-side function to see if the client can access the page, not the webserver serving the content.
Sure. And the best way to do it, if he has PHP/MySQL, is to check the page before it is outputed to the client, once in a week (per page / link) or so.. Even if it must be done via JavaScript (very silly, what about search engines and people with JS off?), the best would be to issue XMLHttpRequest, process URL on the server (cache results), and return back the result. The server could do its verification using get_headers() function.
[size=1][b]CPU:[/b] Core 2 Quad Q6600 @ 3.2GHz | [b]Memory:[/b] 4x2GB Patriot DDR2-800 | 4GB A-Data PD7 ReadyBoost USB | [b]Sound:[/b] X-Fi FPS
[b]Board:[/b] Asus Commando | [b]GPU: 8800GTX @ 650/1050[/b] | [b]HDD:[/b] 3x WD3200KS 320GB + 500GB | [b]Power:[/b] Fortron EPSILON 600W-GLN
[b]Mouse:[/b] Logitech G5 | [b]Kbd:[/b] Logitech G15 | [b]DVD:[/b] Plextor 130B + LITE-ON LH-18A1H | [b]LCD[/b] [b]24" HP2465 1920x1200[/b] | Vista Ultimate x64
My websites: [url=][b][/b][/url], [url=][b][/b][/url], [url=][b][/b][/url], [url=][b][/b][/url], [url=][b][/b][/url] | [url=][b]Games played[/b][/url] | [URL=][B]CPU-Z[/B][/URL] -- [URL=""][B]case foto[/B][/URL][/size]
radekhulan is offline   Reply With Quote