Re: Attachment to email from form.
| From: | Gary | Date: | Sat, 26 Jun 2010 12:14:35 +0000 |
| Subject: | Re: Attachment to email from form. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306454@lists.php.net to get a copy of this message | ||
Richard
Please accept my apology in that my response was sent directly to you and
not the group, I hit 'Reply" instead of 'Reply to Group'.
Gary
"Richard Quadling" <rquadling@gmail.com> wrote in message
news:AANLkTint_WiEsKaD-FuLaIHpjlfrMltkPjdYQsAo-F-a@mail.gmail.com...
> First of all, take a look at
> http://docs.php.net/manual/en/features.file-upload.php
>
> You are trying to open a named file (attachment.zip), but that may not
> be what was uploaded.
>
> The 2 main functions to get to grips with are ...
>
> is_uploaded_file() and move_uploaded_file().
>
> Uploaded files are not best directly accessed. Instead they should be
> moved from the temp directory (assuming the server is set to
> temporarily store uploaded files there) to a proper location for use
> later on in the script.
>
> --
> -----
> Richard Quadling
> "Standing on the shoulders of some very clever giants!"
> EE : http://www.experts-exchange.com/M_248814.html
> EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
> Zend Certified Engineer :
> http://zend.com/zce.php?c=ZEND002498&r=213474731
> ZOPA : http://uk.zopa.com/member/RQuadling
>
> __________ Information from ESET Smart Security, version of virus
> signature database 5229 (20100625) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>
__________ Information from ESET Smart Security, version of virus signature database 5230 (20100625)
__________
The message was checked by ESET Smart Security.
http://www.eset.com