On Monday 02 February 2004 10:33, Mr. Austin wrote:
$buff = fopen(sample.txt, r+);
^
---+
RTFM to see what other options you can use.
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
*
, 2004 8:43 PM
Subject: Re: [PHP] Help with files
On Monday 02 February 2004 10:33, Mr. Austin wrote:
$buff = fopen(sample.txt, r+);
^
---+
RTFM to see what other options you can use.
--
Jason Wong - Gremlins Associates
Mr. Austin wrote:
Hello all,
I am trying to open a file (successful), then rewrite over the file when it is saved via a form on a website. I have used the following code, yet it simple rewrites from the file pointer, but does not clear the file before writing. Thanks for any help.
?php
$buff
Mr. Austin wrote:
I'm not entirely sure why it is that you assume I did not read the manual or
the online documentation (which is very thorough).
I'm sure Jason has made that assumption because the answer to your
question is right there in the manual...under one of the functions
you're using.
Instead of using r+, use w
This will clear the file for you :)
-Original Message-
From: Mr. Austin [mailto:[EMAIL PROTECTED]
Sent: Monday, 2 February 2004 1:51 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Help with files
I'm not entirely sure why it is that you assume I did
This is something I have been battling with for ages.
I finally decided on just setting up a system that saves the files to a
world-writeable temp directory, then uploads them via FTP.
If anyone has a better solution, I would *love* to hear it.
Mike
Michael Blower wrote:
Can some one
On Mon, 2 Jul 2001 12:55:32 -0700 (PDT), John Holcomb
([EMAIL PROTECTED]) wrote:
The company that houses our servers only has php 3.0
installed. I need a function that can unzip files.
Are there any methods(functions) that can handle this
in php3.0 or any version of php that's before php 4.0.
Warning: Rename failed (Invalid cross-device link) in
/usr/local/etc/httpd/htdocs/intranet/upload.php on line 26
In Un*x, you can't "rename" a file from one hard drive onto another.
That's what you are trying to do.
Change your use of rename() to be copy() instead.
--
Visit the Zend Store at
8 matches
Mail list logo