Here is what happens... I am skipping a few steps here and there.... etc..

you type url and run.

the broswer finds the server... the server looks at he extension of the 
document
and sends the page to the php engine.  The engine parses through the doc, 
writing to
the buffer (unless told to stream info)  The page is completed... the 
engine returns an
ok to the server.. the server then dumps the buffer out to the browser.

All through this process there is a live thread between your browser and 
the server.
unless you send a cancel.


Rick


At 07:40 AM 3/15/01 +0200, Lauri Vain wrote:
>Hello everybody,
>
>How does the behind the scenes work by PHP exactly go? Does the PHP thread
>remain active so long as the information is sent to the visitor? Or will PHP
>parse the code and send it to Apache which will send the data to the user
>itself?
>
>The reason that I'm asking this is I'm writing a statistics add-on for one 
>of my
>sites and was wondering whether the code below would give the time in 
>which PHP
>parses the code or in which the data gets streamed to the user.
>
>     $time_one = microtime(void);
>     fpassthru($file);
>     $time_two = microtime(void);
>     // + here will be the code to calculate the difference
>     //    betweeen $time_one and $time_two
>
>Would I get information about my server (parsing time) or would I get some
>information about the requesters internet connection (how fast will my 
>files get
>to the user). Both would be pretty important!
>
>PS  What are the advanced statistics programs out there? I wouldn't mind 
>seeing
>a sample report (any commercial or non-commercial).
>
>Thanks in advance in advance!
>
>Yours,
>Lauri
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

##########################################################
#  Rick St Jean,
#  [EMAIL PROTECTED]
#  President of Design Shark,
#  http://www.designshark.com/
#  Quick Contact:  http://www.designshark.com/messaging.ihtml
#  Tel: 905-684-2952
##########################################################


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to