Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("db.php");
- $query = mysql_query("SELECT * FROM temp_websites");
- while($rows = mysql_fetch_assoc($query))
- {
- $url = $rows['website'];
- $file_headers = @get_headers($url);
- if($file_headers[0] != 'HTTP/1.1 404 Not Found')
- {
- $tags = get_meta_tags($url);
- $title = $tags['title'];
- $keywords = $tags['keywords'];
- $deciption = $tags['description'];
- mysql_query("INSERT INTO `engine`(name, deciption, keywords, website_url) VALUES ('$title','$keywords','$deciption','$url')") or die ( mysql_error ( ) );
- }
- mysql_query("DELETE FROM `temp_websites` WHERE `website` = '$url'") or die ( mysql_error ( ) );
- }
- ?>
Add Comment
Please, Sign In to add comment