Re: Attachment to email from form.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux