faqts : Computers : Programming : Languages : PHP : Common Problems : File Uploading

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

48 of 80 people (60%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

Why does my Win32 PHP on Apache say "Warning: Unable to open '\\php2' for reading: No such file or directory" when I try to upload a file?

Jun 19th, 2000 14:03
Butscher Gérard, Ben Di Maggio,


My solution

Form definition

<form method="post" ENCTYPE="multipart/form-data">
<input type="file" name="file_name" enctype="multipart/form-data">
</form>


Processing URL of the Form

$source_file=stripslashes($file_name);	/* remove one "\"  */
$res_copy=copy($source_file , $dest_file);