[PHP] 2 questions - PHP site Automatic search and slow display

2004-02-28 Thread Ryan A
Hi,
I have to questions which are pretty unrelated except that both of them are
in PHP.

(1)
I am using a class to send email, 3 different kinds (text, html, text+html
attachement)
no problem there, but I am giving the client the option to mail all his
members/clients
at the same time...I have set the timeout to +30 everytime it loops so each
email has
enough time to go through even if its a couple of thousand, heres my
problem:

I want to display a message after each mail has gone through
eg:
after the first mail it says: Mail #1: Sent
the after the second mail Mail #2: Sent
etc etc
something like a progress bar...but for now, it waits then loads the whole
page at a go instead of
one by one. I have looked at the manual and the closest I can come up with
is to use sleep()
but even then am not getting the display like that and its of course slowing
down the sending of mail.
Next I looked at buffering...which is not really for my needs either...
Any ideas?


(2)
We are developing a developer site and its going to be php powered and very
php related, we
want to have that php function search facility that php.net has
eg:
you type http://php.net/mail
and it shows you the mail functions page...

I searched the php.net site but I couldnt find any reference to how they are
doing that...
I know it probably has mod_rewrite which takes the variable to a search
script...right?
any ideas? or is it somewhere on the php.net site that i have not looked?
URL?

Thanks,
-Ryan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] 2 questions - PHP site Automatic search and slow display

2004-02-28 Thread Rasmus Lerdorf
Keep in mind that we have a show source button on every php.net page so
you can see how everything is done.  Here is the source for the code that
handles the error redirection:

   http://www.php.net/source.php?url=/error.php

-Rasmus

On Sun, 29 Feb 2004, Ryan A wrote:

 Hi,
 I have to questions which are pretty unrelated except that both of them are
 in PHP.

 (1)
 I am using a class to send email, 3 different kinds (text, html, text+html
 attachement)
 no problem there, but I am giving the client the option to mail all his
 members/clients
 at the same time...I have set the timeout to +30 everytime it loops so each
 email has
 enough time to go through even if its a couple of thousand, heres my
 problem:

 I want to display a message after each mail has gone through
 eg:
 after the first mail it says: Mail #1: Sent
 the after the second mail Mail #2: Sent
 etc etc
 something like a progress bar...but for now, it waits then loads the whole
 page at a go instead of
 one by one. I have looked at the manual and the closest I can come up with
 is to use sleep()
 but even then am not getting the display like that and its of course slowing
 down the sending of mail.
 Next I looked at buffering...which is not really for my needs either...
 Any ideas?


 (2)
 We are developing a developer site and its going to be php powered and very
 php related, we
 want to have that php function search facility that php.net has
 eg:
 you type http://php.net/mail
 and it shows you the mail functions page...

 I searched the php.net site but I couldnt find any reference to how they are
 doing that...
 I know it probably has mod_rewrite which takes the variable to a search
 script...right?
 any ideas? or is it somewhere on the php.net site that i have not looked?
 URL?

 Thanks,
 -Ryan

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php