Re: mixing HTML and PHP code

From: Date: Fri, 12 Jan 2001 11:13:22 +0000
Subject: Re: mixing HTML and PHP code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34228@lists.php.net to get a copy of this message
On Friday 12 January 2001 00:26, burk@pobox.com wrote: > > echo "<html>"; > > echo "<head>"; > > echo "<title>$title</title>"; > > echo "<link rel='stylesheet' type='text/css' [...] > if ($time_to_write_the_web_page) { > > // write the web page. > echo " > <html> > <head> > <title>$title</title> > "; One reason why I don't like the "echo" route: I lose the syntax highlighting for the HTML that way. String constants should be highlighted as, well, string constants normally, but when they contain HTML code that's just plain ugly. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Pretty cool, the kind of power information technology puts in our hands these days. - Securityfocus on probing 36000000 hosts for known problems in 3 weeks

« previous php.general (#34228) next »