Re: why doesn't this work ?

From: Date: Sat, 17 Apr 2004 18:26:41 +0000
Subject: Re: why doesn't this work ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-183735@lists.php.net to get a copy of this message
Daniel Clark wrote:
I should have also said: Because it's missing the <?php and ?> tags, the web server isn't going to run the code, but pass it back to the client browser.
You are right, but not for the reason you think. <script language="php"> is a valid way of starting PHP mode. http://us2.php.net/manual/en/language.basic-syntax.php Because the file extension is .html, though, the PHP engine will not parse any of the PHP in the file, though. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#183735) next »