I have a PHP script that queries a MySQL database,
retrieves email addresses, and sends an email to all
members of a website.
The problem is this: the PHP script times out after
sending about 5,000 mailings, and I have to restart it
10 times in order to mail the entire list!
This is an ongoing
resets the
timer, so
set_time_limit(20) every 100 e-mails should be more
than enough.
HTH
Bogdan
Daren Cotter wrote:
I have a PHP script that queries a MySQL database,
retrieves email addresses, and sends an email to
all
members of a website.
The problem is this: the PHP
Lemos [EMAIL PROTECTED] wrote:
Hello,
On 08/14/2002 08:54 PM, Daren Cotter wrote:
I have a PHP script that queries a MySQL database,
retrieves email addresses, and sends an email to
all
members of a website.
The problem is this: the PHP script times out
after
sending about 5,000
To recap, my problem is:
I need some mailings sent immediately (confirmation
emails, welcome emails, password lookup emails, etc),
while others simply get thrown into the queue, and get
sent the next time the queue processes.
I contacted a sendmail guru, and he told me that if
Sendmail is run
as it receives
them instantaneously.
Adam
On Thu, 15 Aug 2002, Daren Cotter wrote:
To recap, my problem is:
I need some mailings sent immediately
(confirmation
emails, welcome emails, password lookup emails,
etc),
while others simply get thrown
Justin is perfectly correct. Sessions are really the
way to perform this task (sessions actually use
cookies in most scenarios).
However, if you need to track the user for longer than
they will be at your site (i.e., they close the
browser and come back a week later, like you said), it
should be
php.ini config file
--- Randy Johnson [EMAIL PROTECTED] wrote:
How do I surpress php warnings from being displayed
to the screen
Randy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I use PHP to send mail. Recently, emails originating
from the server stopped sending. After some
investigation, I looked at the /var/log/maillog file,
and saw the following errors when a mailing tried to
originate:
Aug 29 13:16:10 x sendmail[1162]: g7TIGA001162:
SYSERR(apache): Can't create
Hi all...
For some reason, starting today, sendmail will not run
as root on my server...it starts as user apache.
This is causing permission problems with the mail
queue. I have made no configuration modifications to
the server in months.
Does anyone know why this may be happening, or how to
I have PHP installed on a Cobalt RaQ550. I know there
are two ways of installing PHP, one as a binary, and
one as an Apache module. I am pretty sure PHP gets
installed as an Apache module for the Cobalt
installation.
My problem, is that I absolutely NEED to run a PHP
script using crontab. The
in that script you will
probably want to set the
time limit to 0 so it doesn't time out...
On Wed, 25 Sep 2002, Daren Cotter wrote:
I have PHP installed on a Cobalt RaQ550. I know
there
are two ways of installing PHP, one as a binary,
and
one as an Apache module. I am pretty sure
;
It prints nothing, not even 0
--- Chris Hewitt [EMAIL PROTECTED] wrote:
On Wed, 25 Sep 2002, Daren Cotter wrote:
My problem, is that I absolutely NEED to run a PHP
script using crontab. The script needs to send
numerous queries to a database every hour. Is
there
any way I can
?
--- Jason Young [EMAIL PROTECTED] wrote:
Sorry to butt in :)
Arguments to web scripts are done in the format:
page.php?arg1=data1arg2=data2
So you would use that full string as the lynx path.
Hope this helps :)
-Jason
Daren Cotter wrote:
Thanks for the info Chris, it works!
How do I
$hi;
?
Running the command php -f phpfile.php test
returns test
Does this help at all??
-Jason
Daren Cotter wrote:
Jason,
I'm not using a web script any longer, I'm using
command-line (I determined that it is installed on
the
server).
I read about $argc and $argv
to change
or
somethign?
--- Jason Young [EMAIL PROTECTED] wrote:
Sorry to butt in :)
Arguments to web scripts are done in the format:
page.php?arg1=data1arg2=data2
So you would use that full string as the lynx
path.
Hope this helps :)
-Jason
Daren Cotter wrote:
Thanks
?
To clarify:
phpfile.php contains:
?
$hi = $argv[1];
echo $hi;
?
Running the command php -f phpfile.php test
returns test
Does this help at all??
-Jason
Daren Cotter wrote:
Jason,
I'm not using a web script any longer, I'm using
command-line (I
In any case, register_globals is ON for my server.
I don't understand why this isn't working? I'm doing
exactly what the manual says. What could I be missing?
--- Robert Cummings [EMAIL PROTECTED]
wrote:
Nope, $GLOBALS remains as always...
-Sep-2002 Daren Cotter wrote:
Jason,
That's exactly what I'm trying to do, and it's not
working:
My Script:
#!/usr/bin/php -f
?php
$test = $argv[1];
print $test;
$demo = This Works;
print $demo;
?
Running:
./test.php blah
Yiels only This Works, but not blah
This just prints out a bunch of info (seems to be
unimportant)...what am I looking for in this?
--- Don Read [EMAIL PROTECTED] wrote:
On 25-Sep-2002 Daren Cotter wrote:
Holy wowsers...about 5 pages of jibberish printed
out,
and at the end:
bWarning/b: Nesting level too deep
Don,
It was not there anywhere.
--- Don Read [EMAIL PROTECTED] wrote:
On 25-Sep-2002 Daren Cotter wrote:
This just prints out a bunch of info (seems to be
unimportant)...what am I looking for in this?
You're looking for your argument string blah
--
Don Read
it as:
% php script.php arg1 arg2 arg3
and then search the output for arg1 and find out
where it is. It's got to
be there somewhere.
-philip
On Wed, 25 Sep 2002, Daren Cotter wrote:
Don,
It was not there anywhere.
--- Don Read [EMAIL PROTECTED] wrote:
On 25-Sep-2002 Daren
and then search the output for arg1 and find out
where it is. It's got to
be there somewhere.
-philip
On Wed, 25 Sep 2002, Daren Cotter wrote:
Don,
It was not there anywhere.
--- Don Read [EMAIL PROTECTED] wrote:
On 25-Sep-2002 Daren Cotter wrote:
This just
I need to filter out certain characters from being
stored in the database from our signup form. The
fields include first name, last name, street address,
city, zip, etc.
Question 1: What characters should be allowed, other
than lowercase, uppercase, digits, and the space
character?
Question 2:
I need a regular expression to verify various inputs
on my form. I know the base case of:
^[a-zA-Z0-9]+$
matches any letter or number. I'm looking for various
input from the list as to what characters should be
allowed in the following fields:
Name: I would think -, ', and space for sure.
John,
What about foreign names...such as the umlaut in
German? I'm not interested in allowing ALL of the
characters, just the most common ones...I'd hate to
restrict a genuine registration because the name
contains an unaccepted character. Know what I mean?
--- John W. Holmes [EMAIL PROTECTED]
I need to display an entire downline (info about all
members referred by another member). The query to
actually get the info I need is fairly simple, but
displaying it in a table is what's tripping me up.
There are two tables: Affiliates and Referrals.
Affiliates keeps track of all affiliate
I need to display an entire downline (info about all
members referred by another member). The query to
actually get the info I need is fairly simple, but
displaying it in a table is what's tripping me up.
There are two tables: Affiliates and Referrals.
Affiliates keeps track of all affiliate
I need to display an entire downline (info about all
members referred by another member). The query to
actually get the info I need is fairly simple, but
displaying it in a table is what's tripping me up.
There are two tables: Affiliates and Referrals.
Affiliates keeps track of all affiliate
28 matches
Mail list logo