Re: [PHP] writing to file

2005-08-07 Thread Jochem Maas
Sebastian wrote: i have this app where a user fills out a form and after submit it displays the values they entered. i want to save this info to a file after they submit, then allow them to download the file. some other user does the same, fills in the form and allow that person to download the

Re: [PHP] Writing to file with function

2003-07-12 Thread Jason Giangrande
Never mind everyone, I figured it out. In this line: $data_line = implode($separator, $data_array)."\n"; I was adding a newline when I didn't need too. Jason On Sat, 2003-07-12 at 17:03, Jason Giangrande wrote: > I have written this function to rewrite the contents of a text file > after it's

Re: [PHP] writing to file quick and easy.

2001-05-23 Thread Chris Lee
sure this is not complicated, this is easy :) HTML in here, anything you put here, will goto the file too. Download "; $file = fopen("$DOCUMENT_ROOT$filename", 'w+'); fwrite($file, ob_get_contents()); ?> is this what you mean ? please get back to me. -- Chris Lee [EMAIL PROTECTED]

Re: [PHP] writing to file on server

2001-04-22 Thread Felix Kronlage
On Sun, Apr 22, 2001 at 03:06:04PM -0700, Adam wrote: > chmod the file to 777, this will allow anyone write permission to the file > and thus you will be able to append to the file file-mode 777 is ugo=rwx. You want 'chmod 666', which is ugo=rw. read is 4 write is 2 execute is 1 If you want rw

Re: [PHP] writing to file on server

2001-04-22 Thread Adam
chmod the file to 777, this will allow anyone write permission to the file and thus you will be able to append to the file -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administ

Re: [PHP] writing to file on server

2001-04-22 Thread Joeri Vankelst
But when I try using the path to the file I get denied permission ... How can I use my password then? Or can I bypass that in some way? ""Plutarck"" <[EMAIL PROTECTED]> wrote in message 9bupqt$b8s$[EMAIL PROTECTED]">news:9bupqt$b8s$[EMAIL PROTECTED]... > When you are using that on your site, what

Re: [PHP] writing to file on server

2001-04-22 Thread Plutarck
When you are using that on your site, what basically happens is that you are trying to open an FTP session with yourself. Not too efficient. So just kill off the url and use the path to your file. -- Plutarck Should be working on something... ...but forgot what it was. ""Joeri Vankelst"" <[EM

Re: [PHP] writing to file on server

2001-04-22 Thread chris herring
unless that file you're writing to is on a different server, just put the relative location to the file. ie: ./guestbook.txt if this doesn't work I have nothing to offer you. :-\ - Original Message - From: "Joeri Vankelst" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, April 22