Re: mail/variable help needed..
| From: | Jason Wong | Date: | Mon, 19 Aug 2002 02:11:07 +0000 |
| Subject: | Re: mail/variable help needed.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113172@lists.php.net to get a copy of this message | ||
On Monday 19 August 2002 07:23, eriol wrote:
> I understand that PHP will retain the file in a temporary directory (/tmp/)
> until it is stored to the path I've specified (/uploaded/), but I don't
> understand how to get it to print the new file name within the email it
> sends to me.. Currently, it only prints the temporary file name as shown
> above..
That's because at the point that you're assigning $body that is what $file
contains ...
> As you can see, to the last $body variable, I've added both $info & $file
> as a test, but $info returns null and $file returns the temp path/name
> only.. However, within the returned php/html page, the $file variable
> actually does echo the actual file name the user chose to upload..
..., move it to after you have redefined $file and $info.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
They're only trying to make me LOOK paranoid!
*/