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

From: Date: Sun, 29 Feb 2004 01:53:28 +0000
Subject: Re: 2 questions - PHP site Automatic search and slow display
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-179108@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 (1) dont know if u understood, but have you tryed flush()? (http://www.php.net/flush) (2) i think you could make a script for 404 error, and that script could take that path in the url and use it for searching... 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
- -- André Cerqueira -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAQUYbaxdA/5C8vH8RAjoFAJ0d47zlJvZWv6PVVGBGg/sAvdbkeQCfTGKR eeeFXfm7SGtDWuIBcsnj8KE= =6s7N -----END PGP SIGNATURE-----

« previous php.general (#179108) next »