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

[PHP] writing Excel files through PHP

2004-01-10 Thread Binay
Hi all, I m generating an Excel file though PHP by sending the appropriate header and then using HTML TD tags to write data in different cells. Below is my code snippet. It has got 1 problems: 1. Image doesn't come/showup in Excel sheet. ?php header(Content-type: application/vnd.ms-excel);

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

[PHP] Writing to files

2003-07-11 Thread Jason Giangrande
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 preserve data? I ask because it would be much easier to print the lines of the file out in order of last added first if I could add lines at

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,

[PHP] Writing text files in Windows 2k

2003-02-10 Thread Joe Njeru
Hi All, 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

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

[PHP] Writing text files in Windows 2k

2003-02-10 Thread Joe Njeru
Thanks for the tip I want to export a report to excell and a legacy system that allow csv file import for incorporation into the financial system. Joe Njeru Nairobi, Kenya. Where else can you flyfish for trout on the Equator! -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

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

[PHP] Writing text files in Windows 2k

2003-02-10 Thread Joe Njeru
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. Joe Njeru, Nairobi, Kenya. begin 666 veh_fuel_iss_hist_rpt.csv M,C P,BTQ,2TP,CM!,C R,3DV.U!%5%)/3

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

[PHP] writing pdf files to physical files...

2002-10-25 Thread Brian McGarvie
I presently generate pdf files as required... I use FPDF for writing PDF... I require to save these to file... is it a simple case of: where the script: generate_stats_view_table_pdf.php generates the PDF... ? $fcontents= file

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

[PHP] Writing to Files

2002-04-05 Thread Sebastian A.
Hey All, I have recently been trying to create some logs for the install script I have been making (to make it easier for me to diagnose problems) but I am wondering how to create and write to text files. I know about the fopen() and fwrite() functions, which theoretically should enable

Re: [PHP] Writing to Files

2002-04-05 Thread R'twick Niceorgaw
) [EMAIL PROTECTED] Sent: Friday, April 05, 2002 11:29 AM Subject: [PHP] Writing to Files Hey All, I have recently been trying to create some logs for the install script I have been making (to make it easier for me to diagnose problems) but I am wondering how to create and write to text files. I know

RE: [PHP] Writing to Files

2002-04-05 Thread Rick Emery
List (PHP.NET) Subject: [PHP] Writing to Files Hey All, I have recently been trying to create some logs for the install script I have been making (to make it easier for me to diagnose problems) but I am wondering how to create and write to text files. I know about the fopen() and fwrite

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

[PHP] Writing to files

2002-02-26 Thread Chris Kay
Question I have is, Anyway know of a better way to store temp information? I have a problem that a script I use, uses many pages and after each page the information from the form Is stored and the next page is shown ect It uses more than 20 variables so I can not store the data in cookies.

RE: [PHP] Writing to files

2002-02-26 Thread Warren Vail
: Chris Kay [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 11:19 PM To: [EMAIL PROTECTED] Subject:[PHP] Writing to files Question I have is, Anyway know of a better way to store temp information? I have a problem that a script I use, uses many pages and after each page

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

[PHP] Writing PHP files from inside a PHP file

2002-02-06 Thread Georgie Casey
I want to extract information from a database table and create a half-static, half-dynamic PHP page from the info. I want to store the template for the new page in an external file with tags in the places where I want variables to be printed. What;s the best of achieving this?? I tried fread but

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

2002-02-06 Thread Brandon Orther
PROTECTED]] Sent: Wednesday, February 06, 2002 3:32 PM To: [EMAIL PROTECTED] Subject: [PHP] Writing PHP files from inside a PHP file I want to extract information from a database table and create a half-static, half-dynamic PHP page from the info. I want to store the template for the new page

[PHP] Writing to files

2001-05-14 Thread Tarrant Costelloe
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...? Taz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [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