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
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
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]
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
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
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
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
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
8 matches
Mail list logo