Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- set_time_limit(40);
- function wwwcopy($link,$file)
- {
- $contents = file_get_contents($link);
- if ($contents !== false && strlen($contents) > 100)
- {
- file_put_contents("/data01/virt30895/domeenid/www.applespot.ee/test/live/inc/tempfile.html",$contents);
- rename("/data01/virt30895/domeenid/www.applespot.ee/test/live/inc/tempfile.html", $file);
- }
- }
- // Kopeeri dünaamiline live leht staatiliseks
- wwwcopy("http://live.applespot.ee/livedynamic.php", "/data01/virt30895/domeenid/www.applespot.ee/test/live/inc/livingstatic.html");
- sleep(30);
- wwwcopy("http://live.applespot.ee/livedynamic.php", "/data01/virt30895/domeenid/www.applespot.ee/test/live/inc/livingstatic.html");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement