Re: PHP4 Bug #1814: <SCRIPT> tag not HTML 4.0 complient

From: Date: Thu, 22 Jul 1999 00:30:48 +0000
Subject: Re: PHP4 Bug #1814: <SCRIPT> tag not HTML 4.0 complient
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-8937@lists.php.net to get a copy of this message
> I would like my HTML document, even with all the PHP scripts in, > to be HTML 4.0 complient. To do PHP code that is HTML 4.0 > complient one has to do: > > <SCRIPT LANGUAGE="php"> Isn't the <SCRIPT> tag only for client-side scripts? PHP is not a client side language, but perhaps some day in the future it might be like Perl (but that requires everyone to download the Perl plugin, and I doubt Microsoft would consider adding PHP as a client-side scripting language to Internet Explorer ;-). > but the "LANGUAGE" option is deprecated in the HTML 4.0 > standard. The correct option line should be: > > <SCRIPT TYPE="application/x-httpd-php"> True, but this would only apply to client-side scripts. Server side scripting has no standards, and is up to the implementor. ASP uses <% and %>, ColdFusion uses its <cfxxx> tags, and PHP supports <?php ?>, <? ?>, and <% %> (if "ASP-style" tags are turned on). > And also, the following doesn't work: > > <SCRIPT LANGUAGE="php" TYPE="application/x-httpd-php"> > > So I can't even shove the TYPE attribute in to make validators happy. --Steven Lawrance-- Personal Web Site and E-Mail: slawrance@technologist.com http://www.bryant.edu/~ssl2 (SSL2) > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.dev (#8937) next »