Advertisement
Guest User

Untitled

a guest
Jul 28th, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <meta http-equiv="refresh" content="5;url=test.php">
  2. <?php
  3. $res = mysql_query("SELECT * FROM tableA where st='0' order by id asc LIMIT 1");
  4. $row = mysql_fetch_array($res);
  5.  
  6. $link= $row['wl'];
  7.  
  8. function getTitle($Url){
  9. $str = file_get_contents($Url);
  10. if(strlen($str)>0){
  11. preg_match("/</td></tr><tr><td colspan=2>(.*)</td>/",$str,$title);
  12.  
  13. return $title[1];
  14. }
  15. }
  16. getTitle($link);
  17. ?>
  18.  
  19. * * * * * for i in {0..59}; do curl http://your.domain.zone/page.html && sleep 1; done;
  20.  
  21. * * * * * /usr/bin/php -q /home/username/public_html/yourpage.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement