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?

11 of 24 people (46%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How can I remove this error : Warning: Unable to open '\\php2' for reading: Unknown error (I am using PHP win32 )

Jun 20th, 2000 13:55
Butscher Gérard, Atif Mahmood,


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);