RE: [PHP] input type=file
| From: | John Coggeshall | Date: | Tue, 06 May 2003 22:43:38 +0000 |
| Subject: | RE: [PHP] input type=file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146599@lists.php.net to get a copy of this message | ||
<shameless plug>
I've written an article on File uploading if the docs aren't enough as
well: http://www.coggeshall.org/publications/
(Zend section)
</shameless plug>
:)
John
On Tue, 2003-05-06 at 18:31, Jennifer Goodie wrote:
> Wow, I guess file uploading is the topic of the week for the list.
>
> You can search the archives, because I know file uploading has been
> discussed a lot. Or you can read the documentation.
> http://www.php.net/manual/en/features.file-upload.php The
> documentation has
> an example of a form and of a form action.
>
> > -----Original Message-----
> > From: Andrew Durk [mailto:adurk@farmvet.com]
> > Sent: Tuesday, May 06, 2003 3:14 PM
> > To: php-general@lists.php.net
> > Subject: [PHP] input type=file
> >
> >
> > I am trying to get the browser to upload a file to the server.
> > When i try to
> > access the variable that "holds" the file, i only get the
> > filename. How do I
> > get the actual file?
> >
> > I tried copy($pdf,"$absbath/$pdf_filename") but that resulted in a:
> > "Warning: Unable to open 'E:\telalink.pdf' for reading: No such file or
> > directory in..."
> >
> > The file is indeed there. What am I doing wrong? Is the copy
> > command looking
> > for a server-side file path? If so, how do I get access to a file on the
> > client browser??
> >
> > Any help would be wonderful! Tnx in advance.
> >
> >
> > --
> > Andrew Durk
> > adurk@cultiv8.com
>
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
John Coggeshall
john at coggeshall.org http://www.coggeshall.org/
-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-