Re: Uploading a file

From: Date: Mon, 05 Jun 2000 14:51:41 +0000
Subject: Re: Uploading a file
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-233@lists.php.net to get a copy of this message
Hi! It did not help. Damn. If I do: echo($input_file); the value will be: d:\\temp\\php2 with stripslashes() it will be a proper filename and path, but still nothing hapens. The variable loses its value somewhere! Should there be a temp-file on my drive? Any ideas now? Henri > you have to to copy or rename your input_file. try > copy($input_file, $input_file_name); > > then you get the original filname of your file and stored in your > temp-directory. > > Henri Sora <sorahen@saunalahti.fi> schrieb in im Newsbeitrag: > > 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. > > _____________________________________________________________________ http://iki.fi/sora, tel: 040 53 40 405, 03 616 6726 fax: 03 313 92138

« previous php.windows (#233) next »