You are here: Re: [PHP] usage of php & <script> tags « PHP « IT news, forums, messages
Re: [PHP] usage of php & <script> tags

Posted by Robert Cummings on 03/09/05 02:50

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. |
`------------------------------------------------------------'

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация