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" <[EMAIL PROTECTED]> skrev i meddelandet
news:<[EMAIL PROTECTED]>...
> 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
> --
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php