I want to find out from my PHP what the date (formatted in the MySQL date format of 00-00-0000) will be in 7 days' time.
I thought of using this code, but I wan't sure that it would have the desired effect:
$Date = date ("d-m-Y") + 7;
Then I thought of using the following code:
$Date = date ("d") + 7;
$Date .= date ("-m-Y");
Then I realised that I was going to finish this month with the 38th January 2004, not 07th February 2004.
Is my first code best, or would PHP rather kill itself than do it that way?
P.S. Is there anywhere I can get a tutorial on dealing with files? I need to know how to change what is sent down the pipe depending on file type, and how to move a file that I've uploaded to another folder (directory or whatever) on the server.