0

Is there a way to delay a function so that it doesn't run for a day or two later? I'm somewhat familiar with sleep(), but I really don't think that's what I ought to use.

What I need is a text file to be processed over the weekend/holidays when there is no one in the office, and I thought if I triggered it on Friday I could just set it up to wait a day or so and then run.

I can set an FTP client to upload at a specific time, so I could go that route. If I do, can I just make a script to look into the folder the file is going to and automatically process it?

I'm not sure how I want to start this, so if anyone wants to maybe point me in the right direction I would be grateful.

2
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by ShawnCplus
0

I did come across that a couple times when I was looking around earlier. That's not actually a php function though is it? I'll look into it. Thanks a lot.

0

I did come across that a couple times when I was looking around earlier. That's not actually a php function though is it? I'll look into it. Thanks a lot.

No, it's a program separate of PHP altogether whose purpose is to schedule tasks

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.