|
Posted by James Williams on 05/12/05 22:45
On 5/12/05, Clinton, Rochelle A <raclin3@email.uky.edu> wrote:
> Dear Much Needed Advisor,
>
> I am definitely a PHP novice and making some code changes to a PHP
> script.
>
> I need to change a declared output file to include the date as an
> extension.
>
> My file is declared at the beginning of the script as:
>
> var $exportFile = "Export.txt";
Is this a class? If not you don't need to declare you're variables with var.
> 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");
Use a unix timestamp... var $exportFile = 'export' . time();
> Ex 2:
>
> $file = "Export";
>
> $ext = date("mdy");
>
> var $exportFile = $file . $ext;
>
> I can't seem to get anything to work.
>
> Also, could you point me to somewhere where I can learn the difference
> between declaring variables as:
>
> $exportFile = "Export.txt";
>
> and
>
> var $exportFile = "Export.txt"
>
> Thank you! Thank you!
>
> Rochelle Clinton
>
> Bioinformatics Coordinator
>
> University of Kentucky
>
> 200 Thomas Hunt Morgan Building
>
> office: (859) 257-2161
>
> cell: (406) 570-5383
>
> email: raclin3@email.uky.edu
>
>
--
jamwil.com
[Back to original message]
|