Guest User

Untitled

a guest
Jul 16th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <?php
  2. set_time_limit(0);
  3. session_start();
  4. ini_set("memory_limit","1999M");
  5. include('_db.connection.php');
  6. include_once("init.php");
  7.  
  8. $listing_result = mysql_query("SELECT * FROM milblog_website WHERE listingFeedUrl != ''", $db);
  9. $msg = "Updated at : ".date("l dS of F Y h:i:s A")." <br>";
  10. while ($listing = mysql_fetch_object($listing_result))
  11. {
  12.  
  13. $id = $listing->id;
  14. $url = $listing->listingFeedUrl;
  15. echo "id : " .$id." : url ".$url."\n";
  16.  
  17. if($url)
  18. {
  19. fof_add_feed($url);
  20. #$msg .= "<br>Id : " .$id." : ".$url;
  21. }
  22. }
  23.  
  24. $headers = "Content-Type: text/html; charset=iso-8859-1\n"; // Mime type
  25. $headers.= "From: admin@milblogging.com"."\n";
  26. $sendto = "milblogging@gmail.com";
  27. mail($sendto, "Milblogging Feeds Updates", $msg, $headers);
  28. ?>
Add Comment
Please, Sign In to add comment