FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Running function in the background?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Running function in the background? [message #176579 is a reply to message #176576] Tue, 10 January 2012 02:50 Go to previous messageGo to previous message
Michael Joel is currently offline  Michael Joel
Messages: 42
Registered: October 2011
Karma:
Member
On Mon, 9 Jan 2012 20:32:43 -0500, John Drako
<jbravo556(at)gmail(dot)removethis(dot)com> wrote:

> I have a site where users can download files, and I want to enable the
> users to request files by email. Some of those files are big (not too
> big for email attachements).
>
> What I would like to have the user be able to do is to click on a file
> and have it emailed to him, but the user shouldn't have to wait for the
> emailing function to finish (tens of seconds some time) and continue
> browsing and clicking on other files to email or even leave the site
> confident that they'll receive the files in their email later.
>
> So I would like the emailing functionality to happen in the background
> and independent from the connection to the browser.
>
> Is this possible? Is it doable in PHP directly?

Just an idea - if it sounds dumb just ignore me :)

If nothing else works better. Instead of needing privileges do run
system scrips - couldn't you create a cron job for a PHP script that
sends emails to all records in a database?

When the user clicks the link it simply adds their email address and
fiel to email to the database. When the cron job runs it sends out an
email with the files linked with it.

just a quick thought
Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: form - file - sumple question
Next Topic: Lilupophilupop
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 19:02:31 GMT 2024

Total time taken to generate the page: 0.03701 seconds