Upload/Copy Problem.
| From: | James Herrmann | Date: | Fri, 18 Aug 2000 20:42:15 +0000 |
| Subject: | Upload/Copy Problem. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-12532@lists.php.net to get a copy of this message | ||
Hi,
I'm using a PHP Collaboration application that uploads files to the
server via a form. I know that the uploads are successful because if I
do a x = filesize($filename); and print the value of x the byte size
matches the actual file size exactly.
PHP automatically destroys uploaded files after the receiving script
finishes executing. This makes it necessary to copy the file elsewhere
before the original uploaded file is destroyed. But, my system will not
allow me to copy the file!
I have tried the copy command. I have tried reading the file contents
and dumping it into a new file with fopen(), fread() and fwrite(). I
have tried doing a copy via the system level using exec(), system(),
shell_exec(), and passthru(). All of this to no avail!
One word: help!
--
James Herrmann
WebTeam Programmer/Analyst
Saint Louis University
hermannj@slu.edu