You are here: Re: newbie question: <?=$variable?> yields no output « PHP Programming Language « IT news, forums, messages
Re: newbie question: <?=$variable?> yields no output

Posted by RageARC on 09/29/07 11:27

I have seen somewhere (can't cite where, as I don't remember the site)
a summary of the PHP 6 discussion, in which only the ASP style tags
are removed. Short Tags will remain enabled and completely
functioning, and they have no plans to remove them.

Might not be completely true, but hey, that's what I just read.

Anyhow, I also never use short tags. Let's call things by their names.

You have <?xml and <?php. Don't try to shorten them out. Just express
them. Clearly tell everyone it's PHP and not XML (or vice versa). When
people assume things in this world of programming, problems happen. It
happened before, and will always happen.

---

Anyway that's not the point. The first post just asked how to do it,
it didn't ask for a lecturing of whether it is correct or not, and as
far as I have seen, the guy is being paid to do it that way.

SO open your php.ini file and check if short tags are enabled. That
code works for me so I can assume it's your server's configuration. Oh
and also, check the file's source code. The PHP might not being
parsed, and being shown as a XML line of code (it did for me yesterday
on another code).

 

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

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