Jump to content

Timing (Creating your own Cron Job)


Neptunus Maris

Recommended Posts

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 while

I hope you get the idea of what im talking about.


Neptune
Link to comment
https://forums.phpfreaks.com/topic/25281-timing-creating-your-own-cron-job/
Share on other sites

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

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.