Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function httpget($address,$timeout=3)
- {
- $context = stream_context_create(array(
- 'http' => array(
- 'timeout' => $timeout
- )
- ));
- return file_get_contents($address,0,$context);
- }
- while(true)
- {
- $content=httpget('https://www.kimsufi.com/en/order/kimsufi.cgi?hard=162sk42',10);
- if($content)
- {
- if(strpos($content,'est invalide')==false)
- {
- $msg = "kimsufi Appear! Time: " . date("Y-m-d-H:i") . time();
- mail("your_email@address.com","Kimsufi avilable",$msg);
- }
- }
- sleep(60);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement