RE: [PHP] Uploading file problem
| From: | Rich Gray | Date: | Fri, 07 Mar 2003 04:41:06 +0000 |
| Subject: | RE: [PHP] Uploading file problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138524@lists.php.net to get a copy of this message | ||
> Thanks!! I'll give that a try!
>
> On Thu, 6 Mar 2003, 1LT John W. Holmes wrote:
>
> > > Well, I have a statement that says:
> > >
> > > if (!@copy($photo, $long_path . "speakers/" . $photo_name)) {
> > > echo an error
> > > }else{
> > > proceed with renaming the file
> > > }
> > >
> > > The error that is echoed after the copy is the one that pops
> up. So, it
> > > could be some other problem, but I'm not sure what to look for.
> >
> > Take out the @ sign so you can see what the PHP error message is.
> >
> > ---John Holmes...
Try using move_uploaded_file() as well...
Rich