Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2005051

RE: [PHP] beginner needs help! From: Jay Blanchard (jay.blanchard <email protected>)
Date: 05/12/05

[snip]
My file is declared at the beginning of the script as:

var $exportFile = "Export.txt";

I need it to be, for instance, Export.051205.txt.

I have played around with the date function many ways:

Ex 1:

var $exportFile = "Export" . date("mdy");
[/snip]

You almost had it;

var $exportFile = "Export." . date("mdy") . ".txt";

[snip]
Also, could you point me to somewhere where I can learn the difference
between declaring variables as:
[/snip]

http://www.php.net/variables is a good place to start.
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php