ccrevcypsys Posted November 19, 2007 Share Posted November 19, 2007 I want my website to insert information at the end of them month. How would i go about doing that? Quote Link to comment Share on other sites More sharing options...
Wuhtzu Posted November 19, 2007 Share Posted November 19, 2007 What? Quote Link to comment Share on other sites More sharing options...
surion Posted November 19, 2007 Share Posted November 19, 2007 a cron job executing the script once every month? 0 0 1 * * should do if i m not mistaking (every 0min 0h on the first of every month, dunno about the last star tough(day of week)) more info on how to activate crons on : http://www.adminschoice.com/docs/crontab.htm Quote Link to comment Share on other sites More sharing options...
Distant_storm Posted November 19, 2007 Share Posted November 19, 2007 Your question is very erm unclear. Can you provide abit more information? 1) insert information into what 2) What information 3) using some type of automated system or when someone visits your page. Quote Link to comment Share on other sites More sharing options...
ccrevcypsys Posted November 19, 2007 Author Share Posted November 19, 2007 ok so i want my customers to be able to see compiled information for every month. So at the end of every month (or very begining) doesnt matter. But yeah when that date happens i want it to record information. I just need help on the if statement. Will this logic work?: $year = date(Y); $day = '1'; $month = date(m); if($year."-".$day."-".$month==date(Ydm){ } Quote Link to comment Share on other sites More sharing options...
Wuhtzu Posted November 19, 2007 Share Posted November 19, 2007 I want my website to insert information at the end of them month. How would i go about doing that? How did you expect anyone to guess that based on the above question? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.