Jump to content

need one idea


simun

Recommended Posts

or maybe i can put filemtime() script on my index.php page to check the lastest modified file on every reload and to copy its content to another file?

 

that 'll work...

however, do have a look at CRON...

 

it basically CRON is a services installed on your server that launches a PHP script every xx seconds.

 

a quick google on CRON and PHP gave me quite some interesting results

http://articles.sitepoint.com/article/introducing-cron# is one of them

 

Link to comment
https://forums.phpfreaks.com/topic/185214-need-one-idea/#findComment-977740
Share on other sites

now i can check what file i newer vith this:

$filename_hr = 'quickpolls/data/1227711666.vot';

$filename_it = 'quickpolls/data/1259074716.vot';

 

$hr_vrijeme = date (filemtime($filename_hr));

$it_vrijeme = date (filemtime($filename_it));

 

if ($hr_vrijeme > $it_vrijeme) {echo "hr is new";}

 

else {echo "it is new";}

 

How can i make now that content from newer file is copied to older file?

Link to comment
https://forums.phpfreaks.com/topic/185214-need-one-idea/#findComment-977754
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.