Re: Speed issues.

From: Date: Sun, 28 Jul 2002 09:06:56 +0000
Subject: Re: Speed issues.
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-110038@lists.php.net to get a copy of this message
I didn't expect it to make too much of a difference. Thank you for your answer. Yves Vrancken "Justin French" <justin@indent.com.au> wrote in message news:B969E5D0.B7BA%justin@indent.com.au... > I haven't noticed ANY performance hit by skipping in and out of PHP and HTML > when it suits me. > > I imagine there *might* be a slight performance hit if you were building a > LOT of table information with print or echo or printf, but the general > answer to your question is usually "whatever suits you better". > > You could run some comparison tests with a microtimer to see what happens... > > I doubt on a 50-100K HTML page that you could notice the difference, unless > the site or server got S**TLOADS of hits. > > > Justin French > > > > on 28/07/02 5:56 PM, Yves Vrancken (webmaster@silvenmyst.com) wrote: > > > Greetings, > > > > I am new to PHP and trying to implement some PHP and MySQL on my website. My > > website has a lot of tables and inside some of those tables, I want to > > display information that is drawn out of the MySQL database using PHP. I was > > wondering what goes faster: > > > > (A). Building the whole page normally up in HTML, doing the usual <table> > > <td> and so forth, and then inside the <td> calling up the PHP in order to > > display the information. For example: <td> <?php ...... ?> </td> > > > > (B). Doing everything in the PHP document, also the 'building' of the > > tables, and then including the PHP script in the main page. For example > > using printf("<tr><td> and so forth. > > > > Thanks, > > > > Yves Vrancken > > > > >

« previous php.general (#110038) next »