Reply to Re: HELP! Trying to add Email Notification to Download File Code

Your name:

Reply:


Posted by Pedro Graca on 11/16/06 11:17

One more change :)

matt wrote:
> Pedro Graca wrote:
<snip>
>> # If the request is for a valid file, send the
>> # file (and mail the admin) and exit.
>> if (isset($_GET['id']) && download_id_is_valid($_GET['id'], $_SESSION['files'])) {
>> if (send_file_by_id($_GET['id'], $_SESSION['files'], DOWNLOAD_DIRECTORY)) {
>> mail(EMAIL_ADMIN, 'downloads', 'file sent');
>> exit();
>> }

else {
## send_file_by_id() failed. Let the user know
echo "Download could not be started. Try again.<br>\n";
## and continue to display file list links
}

>> }
>>
>> # display file list links
<snip>

> Thanks again, I really appreciate the work you put in, it's going now,
> working perfectly!

At last! Thank you for the feedback.

--
I (almost) never check the dodgeit address.
If you *really* need to mail me, use the address in the Reply-To
header with a message in *plain* *text* *without* *attachments*.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация