Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- set_time_limit(0);
- session_start();
- ini_set("memory_limit","1999M");
- include('_db.connection.php');
- include_once("init.php");
- $listing_result = mysql_query("SELECT * FROM milblog_website WHERE listingFeedUrl != ''", $db);
- $msg = "Updated at : ".date("l dS of F Y h:i:s A")." <br>";
- while ($listing = mysql_fetch_object($listing_result))
- {
- $id = $listing->id;
- $url = $listing->listingFeedUrl;
- echo "id : " .$id." : url ".$url."\n";
- if($url)
- {
- fof_add_feed($url);
- #$msg .= "<br>Id : " .$id." : ".$url;
- }
- }
- $headers = "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type
- $headers.= "From: admin@milblogging.com"."\n";
- $sendto = "milblogging@gmail.com";
- mail($sendto, "Milblogging Feeds Updates", $msg, $headers);
- ?>
Add Comment
Please, Sign In to add comment