Re: Can a PHP script run in the background?

2007-03-12 Thread Chaim Keren Tzion
Great script! I just used it with the following text: Subject: Please Do Something for Polard Today Please do something for Polard today. You're welcome, Chaim On Wednesday 07 March 2007 12:51, Uri Even-Chen wrote: Hi people, I wrote a PHP program that sends E-mail to 121 E-mail addresses

Re: Can a PHP script run in the background?

2007-03-08 Thread Peter
On Thu, 8 Mar 2007, Uri Even-Chen wrote: presses send, but I don't want the user to wait before he sees the confirmation message. Maybe I will just move the PHP script to the end of the file, after the /html tag. Will it work? use dhtml to fake the 'sending process' P

Re: Can a PHP script run in the background?

2007-03-08 Thread Uri Even-Chen
On 3/8/07, Peter [EMAIL PROTECTED] wrote: use dhtml to fake the 'sending process' I'm not that familiar with dhtml. How do I do it? Uri. = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe in the message

Re: Can a PHP script run in the background?

2007-03-08 Thread Peter
On Thu, 8 Mar 2007, Uri Even-Chen wrote: On 3/8/07, Peter [EMAIL PROTECTED] wrote: use dhtml to fake the 'sending process' I'm not that familiar with dhtml. How do I do it? Use Javascript to show an animation of 'sending ... sending ... sent1' Peter

Can a PHP script run in the background?

2007-03-07 Thread Uri Even-Chen
Hi people, I wrote a PHP program that sends E-mail to 121 E-mail addresses at once [http://www.speedy.net/knesset/]. The problem is, it takes many seconds until the program completes sending all the E-mails. I want to give the user an instant feedback, and send E-mails later (after the HTML

Re: Can a PHP script run in the background?

2007-03-07 Thread Geoffrey S. Mendelson
On Wed, Mar 07, 2007 at 12:51:42PM +0200, Uri Even-Chen wrote: I wrote a PHP program that sends E-mail to 121 E-mail addresses at once [http://www.speedy.net/knesset/]. I'm wondering if there is another way to do this. For example, there may be a public email alias at the Knesset that does

Re: Can a PHP script run in the background?

2007-03-07 Thread Ori Idan
I think the best way is not to send by PHP at all but to set up a mailing list such as Majordomo or mailman and then use PHP to send to one address, the list address. -- Ori Idan On 3/7/07, Uri Even-Chen [EMAIL PROTECTED] wrote: Hi people, I wrote a PHP program that sends E-mail to 121

Re: Can a PHP script run in the background?

2007-03-07 Thread Sagi Bashari
will regain control right away? Or alternatively, can I run another PHP script in the background? PHP can also run from command line, using the /usr/bin/php CLI. So instead of running the script from the browser you can make it run from a regular shell where the running time is not much of an issue

Re: Can a PHP script run in the background?

2007-03-07 Thread Shlomi Fish
On 3/7/07, Ori Idan [EMAIL PROTECTED] wrote: I think the best way is not to send by PHP at all but to set up a mailing list such as Majordomo or mailman and then use PHP to send to one address, the list address. One can also set up an alias that sends email to several recipients at the mail

Re: Can a PHP script run in the background?

2007-03-07 Thread Ira Abramov
Quoting Uri Even-Chen, from the post of Wed, 07 Mar: Hi people, I wrote a PHP program that sends E-mail to 121 E-mail addresses at once [http://www.speedy.net/knesset/]. The problem is, it takes many What happens when spammers start using your little script? or maybe just stupid kids start

Re: Can a PHP script run in the background?

2007-03-07 Thread Hetz Ben Hamo
Hi Uri, Without entering any political fight with you here on this list (or elsewhere) - Your script to send emails to MK from your site, WILL get your site's mail blocked and marked as SPAM (as well as being marked as spammer in RBL etc...) Please note: the guys in the goverment who do monitor

Re: Can a PHP script run in the background?

2007-03-07 Thread Boaz Rymland
Hi, What you are referring to is off-line execution of PHP. I know there are ways to do it in other web-targeted scripting languages. In PHP I'm not aware of free implementation of this functionality. I am familiar with commercial solution for that. Zend (which is where your truly works for)

Re: Can a PHP script run in the background?

2007-03-07 Thread Uri Even-Chen
On 3/7/07, Boaz Rymland [EMAIL PROTECTED] wrote: Hi, What you are referring to is off-line execution of PHP. I know there are ways to do it in other web-targeted scripting languages. In PHP I'm not aware of free implementation of this functionality. I am familiar with commercial solution for

Re: Can a PHP script run in the background?

2007-03-07 Thread Uri Even-Chen
I was wondering, maybe I can just add the sign to the sendmail command line? Will it work? If this line is executed 121 times from my script? Here is the line: $tmp_mail_command= '/usr/sbin/sendmail -f ' . $tmp_email . ' ' . $tmp_addresses_clone[$tmp_random] . ' /dev/null 21'; Uri.