News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Design Aeon:
Check Dead Links From Database Using PHP CURL
June 18, 2012 @ 09:45:55

On DesignAeon.com there's a recent tutorial posted showing you how to extract URLs from your database and determine which ones are "dead" automatically with the help of cURL.

Checking Deadlinks From the database manually is a Headache ,So why not use a script which return the http status of the particular link and tell us if the link is dead or not.So how do we check the dead links from the database ? How do we programatically check whether the link is dead or not ? To check broken or dead links from Database we will use curl .

Included in the post is a sample script that extracts the URLs from a field in the database (you'd need some extra smarts if you're pulling it from content) and running it though a "checklink" function. If the call to curl_getinfo returns false, the link is marked dead.

0 comments voice your opinion now!
dead link url curl check automatic tutorial database


blog comments powered by Disqus

Similar Posts

Christian Schaefer's Blog: Using Zend Framework components in a Symfony2 project

Gonzalo Ayuso's Blog: How to protect from SQL Injection with PHP

HowToForge.com: Installing Lighttpd With PHP5 And MySQL Support On OpenSUSE 11.1

Hasin Hayder's Blog: Creating Thumbnail of WebPages using WebThumb API

SitePoint PHP Blog: Sophisticated Object Iterators in PHP


Community Events











Don't see your event here?
Let us know!


podcast symfony2 framework security install composer database component overview package opinion application performance hhvm language unittest facebook release hack introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework