Re: copy() not working
| From: | Peter Lauri | Date: | Tue, 16 Nov 2004 16:10:17 +0000 |
| Subject: | Re: copy() not working | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-202174@lists.php.net to get a copy of this message | ||
Thank you. Now I am getting somewhere, but I get this error-msg now, I do
not understand the content of it. Have tried to read about the Auth in PHP
but I did not get any information to solve the problem:
Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script
whose uid is 113323 is not allowed to access / owned by uid 0 in
/customers/devdws.com/devdws.com/httpd.www/admin/imageadmin.php on line 36
Possible file upload attack!
Here is some more debugging info:Array
(
[userfile] => Array
(
[name] => but_hide.gif
[type] => image/gif
[tmp_name] => /tmp/phpugQpuz
[error] => 0
[size] => 1054
)
)
- BEST OF TIMES
/Peter
"Burhan Khalid" <phplist@meidomus.com> skrev i meddelandet
news:<1100615573.13148.27.camel@enterprise.kuwaitnet.net>...
> On Tue, 2004-11-16 at 14:58 +0100, Peter Lauri wrote:
> > Best groupmember,
> >
> > I am implementing a script to upload a file to my webserver. I am using
this
> > form that I copied from a working application:
> >
> [ snipped ]
> > To handle the form I am using this script...
> >
> > if($File) {
> > if(copy($File, $File_name)) {
> > echo 'The image was not uploaded!';
> > } else {
> > echo 'The file was not uploaded!';
> > }
> > }
> >
> > It does not even enter the if($File) part (checked it witch echos).
>
> Use move_uploaded_file() -- and read
> http://www.php.net/manual/en/features.file-upload.php
> --