Re: php upload script problems
| From: | Jim Grill | Date: | Sat, 25 Sep 2004 18:40:24 +0000 |
| Subject: | Re: php upload script problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197824@lists.php.net to get a copy of this message | ||
> Hi,
>
> I have the following php page. The page just opens up blank and I assume I
> made an error I cannot see. I'm new to php and any help would be greatly
> appreciated:
>
> <?php
>
> $extlimit = "yes"; //Do you want to limit the extensions of files uploaded
>
> $limitedext = array(".pdf"); //Extensions you want files uploaded limited
> to.
>
> $sizelimit = "no"; //Do you want a size limit, yes or no?
>
> $sizebytes = "200000"; //size limit in bytes
>
> $dl = "http://www.corrige2.bluehill.com/pdfs"; //url
> where files are
> uploaded
>
> $absolute_path =
> "http://www.corrige2.bluehill.com/pdfs"; //Absolute path
to
> where files are uploaded
>
Aside from what others have pointed out, your absolute path is not a file
path at all. This will cause some problems later on in the script when you
try to upload an image file to a URL instead of a file path.
Jim Grill