php-general Digest 22 Feb 2010 02:43:39 -0000 Issue 6602
Topics (messages 302246 through 302248):
Re: Advice on maintaining public and private files
302246 by: Al
Fun with Streams
302247 by: Matt Neimeyer
Re: Excel Spreadsheets and PHP
302248 by: Jay Blanchard
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
On 2/21/2010 9:11 AM, Kim Madsen wrote:
Al wrote on 20/02/2010 19:30:
I use Kim's solution and take it one step forward. Htacces files can
get lost or corrupted, so....
No solution to that problem as I see it.
In my config file I have the text string.
I like the idea, but what if this file is never accessed?
Generally my applications have Admins and Users. Admins visit every day or two;
when they do, function checkHTaccessFile($htaccessText) gets called.
It can also be called when Users visit, which is of course more often. This
option is set in the config file.
If someone is particularly concerned a cronjob to run every x hours will also
work. This seems to me to be a bit of overkill.
--- End Message ---
--- Begin Message ---
I created a stream wrapper around the php_writeexcel library found at
http://www.bettina-attack.de/jonny/view.php/projects/php_writeexcel/
My code can be seen at http://www.pastebin.com/m7212eaa2
I'm trying to add an option that will allow us to lower or uppercase
the column headers we create by calling ftell on the Excel stream but
when I do something like...
$xls = fopen("xlsfile://../data/measurables.xls","wb"); echo ftell($xls);
...I get 0 returned even though I've hard coded a return of 123 in my
stream_tell function (which I did to see if my stream_tell was even
being called).
Can anyone tell me what I'm doing wrong or suggest another way to
"communicate" into the stream wrapper that will be compatible with PHP
4 and 5 on OSX, Linux and Windows?
Thanks
Matt
--- End Message ---
--- Begin Message ---
[snip]
What are you using, if anything, to create Excel spreadsheets with PHP?
[/snip]
PHP
http://www.evolt.org/node/26896
--- End Message ---