Re: usage of php & <script> tags

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

 



On Tue, 2005-03-08 at 19:27, Marek Kilimajer wrote:
> Robert Cummings wrote:
> > On Tue, 2005-03-08 at 10:55, Jochem Maas wrote:
> > 
> >>I sure I'm not the only one on this list that reads php-internals
> >>after reading the thread entitled:
> >>
> >>""
> >>
> >>I'm wondering if anyone here has _ever_ used the <script> tags
> >>to enclose php code? e.g.:
> >>
> >>
> >><script language="php">
> >>
> >>echo "testing 123";
> >>
> >></script>
> > 
> > 
> > My template compiler outputs the script tags exclusively since they are
> > XML compliant.
> 
> I wonder now if I don't understand XML's Processing Instructions [1]. 
> And <, > and & are not compliant anyway.
>
> [1] http://www.w3.org/TR/2004/REC-xml11-20040204/#sec-pi

Hmmm, I should re-read docs sometimes. At some point the PHP doc
indicated that <script language="php"> was preferential for editors
(maybe that was dumb HTML editors like dreamweaver and I might have
inferred XML out of laziness :). But reading your link and rereading the
docs for PHP processing tags would indicate that the <?php version is
the correct and compliant tag. No matter, I already added support for
preferred tag earlier today with a default of <?php :)

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
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