Jump to content

need one idea


simun

Recommended Posts

the problem is that i dont know how to launch request every x seconds, is there any scrypt to do that?

 

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?

Link to comment
Share on other sites

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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.