Ryan Schmidt wrote:
On Dec 5, 2007, at 03:15, Michael Thon wrote:
...
Anyway, my solution is to add <?php to the files.
Beginning PHP code fragments with "<?php" is the portable way to do it. This will work on every PHP interpreter. "<?", however, will only work if "short_open_tag" is set to "on" in the php.ini, and is therefore not recommended, since some installations may have it set to "off".
It's inadvisable to use the short form (<?) as it's ambiguous. When coding webpages you can have both <?xml and <?php . If you are allowing php short tags, your <?xml tags can be interpreted as php code, which you definitely don't want. Also, you'll have to use '<?php echo' instaed of the shorthand '<?=' in your scripts. see: http://php.net/ini.core -- Bjarne D Mathiesen København N ; Danmark ; Europa ---------------------------------------------------------------------- denne besked er skrevet i et totalt M$-frit miljø MacOS X 10.5.1 Leopard ; Seamonkey 1.1.x ; PowerPC G4 800MHz