Barry, Either will work, but I would guess that one will work quicker than the other. I depends a little on how how much you are doing between the php tags. I will add this comment:
When the web server goes from html to php, it changes context to call the script engine. This change takes time. If your server is not heavily loaded, the amount of time may not be significant. "A" might provide better performance as it switches context only once. "B" might be easier to maintain as it will 'look' more like html to the programmer. Randy Clamons Systems Programming Novaspace.com > ------------Original Message------------ > From: Jason Barnett <[EMAIL PROTECTED]> > To: php-windows@lists.php.net > Date: Mon, May-2-2005 8:51 AM > Subject: Re: [PHP-WIN] Newcomer > > Barry Fawthrop wrote: > > Thanks all > > > > Yes I have been slowly working through the manual, which has helped > alot. > > > > I'm not sure on the issue raised, which is better A or B > > > > This falls into the "religious" area of programming. There's a good > discussion about templates going on over in php-general newsgroup right > > now. You can check the archives if you're interested in reading > through > it all. > > > > > (A) <?php echo "<html><body>.......</body></html> ?> > > or > > (B) <html><body><?php .... ?> xxxxx <?php .... ?> xxxx > </body></html> > > > > They both work so really it's a matter of what looks best to you / the > code maintainer. > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php