On Thu, 01 Nov 2001 13:25:27 -0600, Joseph Koenig <[EMAIL PROTECTED]> wrote:
>> I've been working on this all day and still am no further than I was >> this morning. I'm pulling my hair out. In php.ini, the upload_tmp_dir is >> set to "F:\PHP\uploadtemp", which is right where it should be. When I >> upload a file, if I echo it, I get the path to the file, however, when I >> go into the server to view the file, it's not there. It's nowhere to be >> found. Doing a search on the server won't even bring up the file. It's >> like it's going up to temp and then being removed immediately. If I try >> and move it, it just disappears, too. Is there some funky permissions >> thing or something I'm missing? Thanks (please CC me on all replies), >> Here is an excerpt from Core PHP Programming, by Leon Atkinson (pg 108): "If you plan on using the file later, move the new file into a permanent spot. If you do not, PHP will delete the file when it finishes executing the current page request." He also provides an example that will delete the file as soon as it is done: <?php // check for file upload if(isset($UploadedFile)) { unlink($UploadedFile); print("Local File: $UploadedFile <BR>\n"); print("Name: $UploadedFile_name <BR>\n"); print("Size: $UploadedFile_size <BR>\n"); print("Type: $UploadedFile_type <BR>\n"); print("<HR>\n"); } ?> <FORM ENCTYPE="multipart/form-data" ACTION="<? $PHP_SELF ?>" METHOD="post"> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="4096"> <INPUT NAME="UploadedFile" TYPE="file"> <INPUT TYPE="submit" VALUE="Upload"> HTH, Thomas Juntunen Network Administrator Creative Resource Center -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]