Uploading a file

From: Date: Mon, 05 Jun 2000 12:35:39 +0000
Subject: Uploading a file
Groups: php.windows 
Request: Send a blank email to php-windows+get-224@lists.php.net to get a copy of this message
Hello! I've read the posts of Maxwell and Adrian. I've got similar problem and I don't see any way around it. The facts: 1. Windows NT SP6, Apache 1.3.12, PHP 4. 2. A Form where I've got <INPUT TYPE="file" NAME="input_file">... 3. A PHP script that says: [...] $write_dir = "d:\\temp\\"; $fpointer = fopen($write_dir.$input_file_name,"w"); fputs($fpointer, $input_file); fclose($fpointer); [...] 4. PHP.INI has upload_tmp_dir = d:\temp Everything goes fine, but the content of the uploaded file is lost and it is replaced with D:\\temp\php2 Any ideas? I am out of those and in rush. TIA, Henri _____________________________________________________________________ http://iki.fi/sora, tel: 040 53 40 405, 03 616 6726 fax: 03 313 92138

« previous php.windows (#224) next »