Re: Attachment to email from form.

From: Date: Fri, 25 Jun 2010 13:57:52 +0000
Subject: Re: Attachment to email from form.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-306426@lists.php.net to get a copy of this message
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

« previous php.general (#306426) next »