Try copy() instead of move_uploaded_file and see what you get.

Andrew

----- Original Message ----- 
From: "Webmaster" <[EMAIL PROTECTED]>
To: "Marek Kilimajer" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, July 04, 2003 5:12 PM
Subject: RE: [PHP] More on file upload


> Directory permissions are set to 0777
>
> Right now I am just using
>  if ( move_uploaded_file(source,dest))
> {
> echo "file moved";
> }
> else
> {
> echo "could not move file";
> }
>   }
>
> Have not yet been able to figure out how to get a more descriptive error.
I
> know there has to be a better way to get exact message, but just haven't
> figured it out yet.
>
> Mark Roberts, Roberts Computing Systems
> eCommerce, yeah, we do that!
> Graphics, Scripting, Databases, shopping carts
> mailto:[EMAIL PROTECTED]
>
> -----Original Message-----
> From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 04, 2003 10:57 AM
> To: Webmaster
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] More on file upload
>
>
> What is the message now? Is the file being uploaded and
> move_uploaded_file() does not move the file? Then check the directory
> permissions.
>
> Webmaster wrote:
>
> > First of all, thanks to all that have helped so far.
> >
> > I am trying to get a file upload script to work using php v4.0.3 (no
> option
> > here)
> >
> > Everything seems to be working except the move_uploaded_file() function
> (the
> > most critical part)
> >
> > Anthing else to check? Is there a way to get a more descriptive error
msg?
> >
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to