Re: php question about version 4.2.3
| From: | Awlad Hussain | Date: | Mon, 07 Apr 2003 15:30:10 +0000 |
| Subject: | Re: php question about version 4.2.3 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142705@lists.php.net to get a copy of this message | ||
You need to change the permission on the folder where you're trying to copy
the file to..
-awlad
----- Original Message -----
From: "Chow Alex" <dogchow88@hotmail.com>
To: <php-general@lists.php.net>
Sent: Monday, April 07, 2003 4:24 PM
Subject: [PHP] php question about version 4.2.3
>
>
>
> > 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
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>