Re: [PHP] writing Excel files through PHP

2004-01-12 Thread Tristan . Pretty
[EMAIL PROTECTED] cc [EMAIL PROTECTED] Subject Re: [PHP] writing Excel files through PHP Use full uri. But the user needs to be online while viewing the xls file. Other option is to create web archive. It's a mime encoded file, save an excel file with an embeded image and you will see what

Re: [PHP] writing Excel files through PHP

2004-01-12 Thread Marek Kilimajer
Binay wrote: + How to create web archvie which will be mime encoded file and then saving as excel file .. plz direct me to the resources where i can find more information about it .. or tell me how can i proceed to it. Thanks + Web archive

Re: [PHP] writing Excel files through PHP

2004-01-11 Thread Binay
Subject: Re: [PHP] writing Excel files through PHP Use full uri. But the user needs to be online while viewing the xls file. Other option is to create web archive. It's a mime encoded file, save an excel file with an embeded image and you will see what it is. + How

Re: [PHP] writing Excel files through PHP

2004-01-10 Thread Marek Kilimajer
Use full uri. But the user needs to be online while viewing the xls file. Other option is to create web archive. It's a mime encoded file, save an excel file with an embeded image and you will see what it is. Binay wrote: Hi all, I m generating an Excel file though PHP by sending the

Re: [PHP] Writing to files

2003-07-11 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 11 Jul 2003 at 19:56, lines prefixed by '' were originally written by you. Is there a way to write to a beginning of a file without it overwriting data that's already there or do I have to write to the end of the file in order to

Re: [PHP] Writing to files

2003-07-11 Thread Jason Giangrande
Any ideas on how I can print the lines of my file in reverse order, then? Does fgets() always process from the beginning of the file even if you open the file with the pointer at the end? I tried to get the line count of the file and go through each line of the file backwards but that doesn't

Re: [PHP] Writing to files

2003-07-11 Thread CPT John W. Holmes
Any ideas on how I can print the lines of my file in reverse order, then? Does fgets() always process from the beginning of the file even if you open the file with the pointer at the end? I tried to get the line count of the file and go through each line of the file backwards but that

Re: [PHP] Writing to files

2003-07-11 Thread Rob Adams
You could try using the file() function. Then loop backward through the array or use array_reverse. -- Rob Jason Giangrande [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Any ideas on how I can print the lines of my file in reverse order, then? Does fgets() always process

Re: [PHP] Writing to files

2003-07-11 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 11 Jul 2003 at 20:37, lines prefixed by '' were originally written by you. Any ideas on how I can print the lines of my file in reverse order, then? How about... $fp = fopen(yourfile.txt,r); $filecontents = ; while(!feof($fp)){

Re: [PHP] Writing to files

2003-07-11 Thread Jason Giangrande
Thanks for the help guys. Jason On Fri, 2003-07-11 at 15:43, David Nicholson wrote: Hello, This is a reply to an e-mail that you wrote on Fri, 11 Jul 2003 at 20:37, lines prefixed by '' were originally written by you. Any ideas on how I can print the lines of my file in reverse order,

Re: [PHP] Writing text files in Windows 2k

2003-02-10 Thread Chris Hayes
I need to write some data to a text file but when I use $this-ao_file_handle = fopen($this-ao_file_name,ab); $str_txt.= \n; fwrite($this-ao_file_handle,$str_txt); It does not display the new line. I saw somwhere that for DOS files you need to use ASCII LF and CR. Which I did. It still does

Re: [PHP] Writing text files in Windows 2k

2003-02-10 Thread Adam Voigt
Precisely where did you get the b in your second parameter to fopen? I didn't see it on the fopen manual page at: http://www.php.net/fopen If you just want to write to the file and not read it, try changing the second parameter to just w. On Mon, 2003-02-10 at 03:34, Joe Njeru

Re: [PHP] Writing text files in Windows 2k

2003-02-10 Thread Adam Voigt
Doh, doh, doh! Just saw b was allowed for binary on the fopen page. Never mind. On Mon, 2003-02-10 at 09:13, Adam Voigt wrote: Precisely where did you get the b in your second parameter to fopen? I didn't see it on the fopen manual page at:

RE: [PHP] Writing text files in Windows 2k

2003-02-10 Thread Ford, Mike [LSS]
-Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED]] Sent: 10 February 2003 14:13 Precisely where did you get the b in your second parameter to fopen? I didn't see it on the fopen manual page at: http://www.php.net/fopen http://www.php.net/fopen Er -- quoting from that

Re: [PHP] Writing text files in Windows 2k

2003-02-10 Thread Chris Hewitt
Joe Njeru wrote: Hi All The following is the text file generated. I'm runing on Windows 2k spack 3, When I open it in Excell it gives me the data but not seperated into lines. Do you have any suggestions. It does for me in Excle 97 SP2, but I suspect there should be more lines than there

RE: [PHP] Writing text files in Windows 2k

2003-02-10 Thread Adam Voigt
Yes, I'm aware of that, if you would have read my reply 10 seconds after I sent the first one, I corrected myself. On Mon, 2003-02-10 at 09:25, Ford, Mike [LSS] wrote: -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED]] Sent: 10 February 2003

RE: [PHP] writing to files

2002-05-31 Thread Jonathan Rosenberg
Looks like you're using fopen() incorrectly. Try: fopen($file_name,r+); How about just fopen($file_name, r+); instead. No need for the surrounding s. -- JR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Writing to Files

2002-04-05 Thread R'twick Niceorgaw
http://www.php.net/manual/en/function.printf.php try sprintf to format the string and then fwrite I use text files to log debug msgs in my programs as they are not too heavy duty applications. - Original Message - From: Sebastian A. [EMAIL PROTECTED] To: PHP General List (PHP.NET)

RE: [PHP] Writing to Files

2002-04-05 Thread Rick Emery
try creating a script with fopen(), fwrite(), etc. When you run into problems, ask here. $filex = fopen(myfile,w); fwrite( $filex, write this here); fclose($filex); -Original Message- From: Sebastian A. [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:29 AM To: PHP General

Re: [PHP] Writing to files

2002-02-28 Thread William Lovaton
There is no need to use cookies, sessions, write to a file or somethings like that... just pass the vars from a page to another through hidden fields in the next page form. Eg. input type=hidden name=myHiddenVar value=?= $myHiddenVar ? William El miƩ, 27-02-2002 a las 02:18, Chris Kay

RE: [PHP] Writing to files

2002-02-27 Thread Chris Kay
[EMAIL PROTECTED] --- -Original Message- From: Warren Vail [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 27 February 2002 6:51 PM To: Chris Kay Subject: RE: [PHP] Writing to files Suggest you understand how session management works. Whether you store in a file or database

RE: [PHP] Writing to files

2002-02-27 Thread Warren Vail
] Subject:RE: [PHP] Writing to files I know I can do this with sessions, reason I am asking is webserver should not be able to create file (for security reasons), I would of maybe thought php could create a file as a different user. php is not always used by the box owner. I find it strange

RE: [PHP] Writing to files

2002-02-26 Thread Warren Vail
What you are describing is exactly how session management works, storing things in a file in the /tmp directory. Perhaps you could consider using the session save handler functions to store the session data in your protected database (MySQL?). Warren Vail -Original Message- From:

RE: [PHP] Writing to files

2002-02-26 Thread Chris Kay
]] Sent: Wednesday, 27 February 2002 6:37 PM To: Chris Kay; [EMAIL PROTECTED] Subject: RE: [PHP] Writing to files What you are describing is exactly how session management works, storing things in a file in the /tmp directory. Perhaps you could consider using the session save handler functions to store

RE: [PHP] Writing PHP files from inside a PHP file

2002-02-06 Thread Brandon Orther
Use include(); or require(); Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -Original Message- From: Georgie Casey [mailto:[EMAIL

Re: [PHP] Writing to files

2001-05-14 Thread Jason Stechschulte
On Mon, May 14, 2001 at 03:05:30PM +0100, Tarrant Costelloe wrote: What's the most basic syntax for writing to a text file using PHP. I would like to store some variables in one and then retrieve them a later stage...? This will append This is pretty basic to the end of the file instead of