RE: [PHP-WINDOWS] Uploading a file

From: Date: Tue, 06 Jun 2000 07:21:51 +0000
Subject: RE: [PHP-WINDOWS] Uploading a file
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-243@lists.php.net to get a copy of this message
Hi Henri, Henri Sora wrote > > 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 $input_file only contains the *name* of the temporary upload file. It only exists for the duration of the script. As Joy mentioned you will need to make a copy of this file if you want it to be persistant. Try replacing the code in your original post with: [...] $write_dir = "d:\\temp\\"; copy(stripslashes($input_file), $write_dir.'\'.$input_file_name); [...] Andrew

« previous php.windows (#243) next »