You are here: Re: Why is '>' interpreted as end-tag? « PHP Language « IT news, forums, messages
Re: Why is '>' interpreted as end-tag?

Posted by Kimmo Laine on 09/08/05 13:34

"Henk van Winkoop" <h.van.winkoop@wxs.nl> wrote in message
news:43201061$0$28430$ba620dc5@text.nova.planet.nl...
> Hello,
>
> my little code...
>
> <html>
> <head>
> </head>
> <body>
> <?php
> if (&var > 33){&var=0;}
> ?>
> </body>
> </html>
>
> ------------------------------------------------------------
> why is in next line:
>
> if (&var > 33){&var=0;}
>
> the '>' character interpreted as php endtag and the browser shows:
>
> " 33){&var=0;}......"
> ------------------------------------------------------------
> why does next line ('>' is replaced by '&gt;') work fine???
>
> if (&var &gt; 33){&var=0;}
> ------------------------------------------------------------
>
> anybody has any idea?
>

My guess is that php is not evaluated at all. It just gets passed thru the
server as is. If you take a look at the source code, do you actually see the
same as what comes to the browser, or do you see the entire php tag? Use
some other simple php code to test that php _is_ evaluated, for example
place <?php php_info(); ?> on the page and see if it outputs the php
information. I can't understund why you are using &'s instead of $'s either.

--
Welcome to Usenet! Please leave tolerance, understanding
and intelligence at the door. They aren't welcome here.
eternal piste erection miuku gmail piste com

 

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

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