a problem of php version 4.2.3

From: Date: Mon, 07 Apr 2003 14:58:15 +0000
Subject: a problem of php version 4.2.3
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-16631@lists.php.net to get a copy of this message
Dear webmaster, I am a student that using php for the annual assignment. I am using php version 4.2.3, winXP, apache. When I use the “copy” function to make a upload file link, an error message show: “Warning: Unable to open '' for reading: Permission denied in c:\apache\htdocs\test\getfile1.php on line 9” Below is my code: Upload1.htm: //<HTML><BODY> //<H3>FTP 檔案上傳的要素:(表單的設計部分)<HR></H3> //<Form Action="getfile1.php" Method="POST" //Enctype="multipart/form-data"> //<Input Type="File" Name="upfile" ><p> //<Input Type="Submit" value=" 開始上傳 "> //</Form> //</BODY></HTM> getfile1.php //<HTML><BODY><H3>上傳檔案相關資訊:<HR></H3> //<? //echo "檔案名稱:$upfile_name<BR>"; //echo "檔案大小:$upfile_size<BR>"; //echo "檔案類型:$upfile_type<BR>"; //echo "暫存檔名:$upfile<BR>"; //copy($upfile, "tmp/$upfile_name"); //echo "您所上傳的檔案已儲存為 tmp/$upfile_name"; //?> //<HR></BODY></HTML> I have try to use these two files on my friend computer, they works. He is using php version 4.0.5. How can I solve the problem? PLS help me Alex _________________________________________________________________ 毋須口罩!使用 MSN Messenger 與朋友和家人盡情聊天吧. http://go.msnserver.com/HK/25382.asp

« previous php.mirrors (#16631) next »