note 81797 deleted from ref.mail by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 20:03:00 +0000 |
| Subject: | note 81797 deleted from ref.mail by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155318@lists.php.net to get a copy of this message | ||
Note Submitter: pmonjo2000 at yahoo dot com
----
I have found the function provided by nielsvan den berge very useful. However, I would change the
following:
<?php
$file_name = substr($attachments[$i]["file"], (strrpos($attachments[$i]["file"],
"/")+1));
?>
into
<?php
$file_name = $attachments[$i]["name"];
?>
With this additional column, it is possible to set the name of the attachment to whatever value we
want.