Re: Uploading a file - thanks

From: Date: Wed, 07 Jun 2000 09:07:17 +0000
Subject: Re: Uploading a file - thanks
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-267@lists.php.net to get a copy of this message
Hello! I was able to solve the uploading problem with a copy command. It goes like this: copy($input_file, $write_dir.$input_file_name); So Joy was quite close when replying at first. Thanks to everybod who replied. Henri > 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. > _____________________________________________________________________ http://iki.fi/sora, tel: 040 53 40 405, 03 616 6726 fax: 03 313 92138

« previous php.windows (#267) next »