PHP/DHTML Q...
- Started
- Last post
- 5 Responses
- intoxicated
Hi guys, I really need some expert advice here, I'm totally lost.
Have any of you checked that http://www.mailworkspro.com ? If you checkout the flash demo part5 you can see they use some dhtml that shows the progress of their PHP script while to sends out emails. Any ideas how this is done?
I need some NT brains...cheers.
- smokie0
i have done something simular in ASP, you basically loop thru your database records, send an email then flush an image to the screen. As you loop thru your records it creates a progress bar effect.
Dunno nothing about PHP tho, so i cant give you any code.
:)¬
- intoxicated0
Thanks smokie for your help.
Yeah I know about the flush thing, but that does not seem to work very well.
They seem to call some dhtml script when PHP/ASP send the email > very cool, I guess I'm going to have to buy their software and take it apart (shh. don't tell anyone)
I hate being a fussy perfectionist
- smokie0
have you got :
Response.Buffer=True
at the top of your ASP page?
:)¬
- enobrev0
im not sure of their methods, but i would guess that the output is an iframe. and they are using ob_flush
http://www.php.net/manual/en/fun…it's proceeded by an ob_start
http://www.php.net/manual/en/fun…basically, when you work with the associated funcitons, it puts all the output into a buffer, within the loop you flush the buffer to display what's in it at any given time.
So on every loop iteration you clear the buffer, send the mail, output "Mail #n sent" into the buffer and then flush it which would send it to the iframe.
The rason it should be an iframe isthat you would have to output the contents within the shell of the page (footer included), and you can't really insert info in the middle of a page.
You couldn't really do it with dhtml as it would require open server communication, which you can't really do with a browser.
Good luck!
- intoxicated0
Thank you thank you thank you!
YOU rock!! I'm now going to study those functions and have some fun :-)