Re: Way to output HTML on professional websites

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 26, 2011 at 11:39:06PM -0500, Paul M Foster wrote:
> On Tue, Dec 27, 2011 at 12:46:29AM +0100, Florian Müller wrote:
> 
> > 
> > Hi guys
> > Just a little question: I've programmed some nice little websites up to 25'000 lines of code.
> > Now if I see some bigger websites just as facebook and so on, how are they printing their website out?
> > Does it work like 
> >     <?php    echo "<html><head>...";    ?>
> > or do they output it like
> >     <?php        if (true) {    ?>        <body>
> >         </body>    <?php        } else {     ?>        <head>
> >         </head>    <?php        }    ?>
> > Or is the code even generated or gotten from a database and evaluated?
> > How does the website itself gets printet on really professional websites?
> > Thanks for answer!
> 
> You're asking for an opinion. In mine, if you have to call fifty files
> before printing a byte to screen, you've introduced too much complexity.
> I just finished up five weeks at a company where they were calling
> probably upwards of 100 files before printing anything on screen.

Have a look at smarty:

	http://www.smarty.net/

I like it a lot ... helps with complicated web sites.

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
#include <std_disclaimer.h>

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux