Re: Problem with PHP Page
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Problem with PHP Page

From: Andre Frashek <andre.frashek@stud-mail.uni-wuerzburg.de>
Date: Fri Apr 07 2006 - 10:15:53 CEST

The Numerator wrote:
> Thanks, I hope it helps... I thought that "<? /* code */?>" was the
> same as "<?php /* code */ ?>". What's the difference?
>

You can see the difference in your php-configuration file. Thereīs a
option called "short_open_tag =". If itīs set to On, then you can use
"<? /* code */?>". This is the setting which most webhosters (the oneīs
I know) use. But the DEFAULT setting for this option is "Off". Then your
php code wonīt be executed if you use anything else than "<?php /* code
*/ ?>.

So you should always use the long form to get the code portable.
Received on Mon May 1 02:50:14 2006