views:

39

answers:

1

Hi,

We have a script that needs to function between two dates, so to test the script we need to change the UNIX system date to simulate the date conditions.

PROBLEM: The problem is we have other systems running on the same server so we can't just change the UNIX system date.

QUESTION: Is there a way to set the system date on the fly within PHP, for example using ini_set or another method?

Thanks

+1  A: 

Why don't you create two timestamps and work with them in your script?

Ben Fransen