sciguyryan
03-06-2004, 02:58 AM
How can I setup a cron to check the filesize every 30 seconds or so?
|
Click to See Complete Forum and Search --> : How can I do the following:? sciguyryan 03-06-2004, 02:58 AM How can I setup a cron to check the filesize every 30 seconds or so? Webfreak 03-06-2004, 07:28 AM Here is script to do this. But it refresh page every 30 seconds. So you can remove meta tag to stop this. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="refresh"; content="30;url="> <!--refresh page every 30 seconds - You can use this line but if you use script on page may be annoying --> <title>Filesize check</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <?php $file = "date.txt"; $filesize = filesize($file); echo "File $file = $filesize bytes"; ?> <body> </body> </html> sciguyryan 03-06-2004, 07:46 AM Thank you again! webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |