Login   Register  
PHP Classes
elePHPant
Icontem

filename

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Spreadsheet_WriteExcel  >  All threads  >  filename  >  (Un) Subscribe thread alerts  
Subject:filename
Summary:I need to change the name of the output file
Messages:2
Author:Carlos A. Pérez M.
Date:2006-08-29 13:36:37
Update:2006-08-29 13:49:04
 

  1. filename   Reply  
Picture of Carlos A. Pérez M.
Carlos A. Pérez M.
2006-08-29 13:36:37
I am trying to use your class write_excel and have not been able to change the name of the file that the class outputs.

It allways write to a file named $filename .

I have been using your test.php file included and changed line 6 o read $filename = 'MyFile' to no avail.

Also I changed line 19 to read $workbook = new Workbook( 'MyFile' ); that didn't work either.

So far your class is amazing but I need to be able to control the name of the output file, also the location for the output file.

Many people will be using this feature but the name of the file CAN NOT be the same for security reasons and also ¿What happens if two or more request occurs in the expanse time in which the script is running? ONE NAME for all, can't be.

  2. Re: filename   Reply  
Picture of Carlos A. Pérez M.
Carlos A. Pérez M.
2006-08-29 13:49:04 - In reply to message 1 from Carlos A. Pérez M.
Forget aboutit.

I think there wass an error in the downloaded file.

I downloaded it again and everything is fine now.

Thanks anyway.