Neptunus Maris Posted October 27, 2006 Share Posted October 27, 2006 I'm having trouble creating a cron job of my own....the reason why im not using cron jobs on my server is because the thing i want is detailed...or just say i want to create a cron job entirely myself.Now, I've tried something like this:time()+1800 something like that(like in a cookie timer) and it runs in some loop: while ($cron = time()+2400) {if ($cron = 1800) { $month = January;}if ($cron = 1200) { $month = Feb...;}((and so on...))} //end whileI hope you get the idea of what im talking about.Neptune Quote Link to comment Share on other sites More sharing options...
redarrow Posted October 27, 2006 Share Posted October 27, 2006 Dont mean to be a downer but this wont work as a cron opens a page to execuite at a certon time or date.there issint any over way so your have to get a 3rd party aplication as the page needs to be executed.i have seen even the best computer programmers give up so i adivse the 3rd party method.what i am trying to get accross even if your code is properly coded then how would you get the code to execute and open the browser then exicute the page.sorry. Quote Link to comment Share on other sites More sharing options...
Neptunus Maris Posted October 27, 2006 Author Share Posted October 27, 2006 Ok thanks...butSo that means i would have to create seperate pages to run the actual cron job for each time execution? Quote Link to comment Share on other sites More sharing options...
redarrow Posted October 27, 2006 Share Posted October 27, 2006 yep.unless the exicuted page is the correct page that needs the database information. Quote Link to comment Share on other sites More sharing options...
Neptunus Maris Posted October 27, 2006 Author Share Posted October 27, 2006 Lets say i wanted to have 12 days...each day of those 12 are a month. I want a code that changes the month everyday.Could you possibly give me an example of hosw i would do that?I was thinking of how to do but my brain exploded every time.Neptune 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.