Re: <? vs <?php - bizzare problem



http://www.php.net/ini.core

short_open_tag boolean
Tells whether the short form (<? ?>) of PHP's open tag should be allowed. If
you want to use PHP in combination with XML, you can disable this option in
order to use <?xml ?> inline. Otherwise, you can print it with PHP, for
example: <?php echo '<?xml version="1.0"'; ?>. Also if disabled, you must
use the long form of the PHP open tag (<?php ?>).

Note: This directive also affects the shorthand <?=, which is identical to
<? echo. Use of this shortcut requires short_open_tag to be on.

_____________
Leave it disabled, there are too many instances where you may want to use
another language, there are only 3bytes more code to send <?php
$0.02 worth



--
If at first you dont succeed
try try try again
If at first you do succeed
try not to look surprised

_
"Sergei Shelukhin" <realgeek@xxxxxxxxx> wrote in message
news:1175348554.449266.252810@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi. I am sortof new to php and I am working on a site that is running
on linux server on my windows machine running Apache, and I have the
following problem: the code that is not prefixed with <?php, and is
only prefixed with <?, is not interpreted as php code.

E.g. <? blah ?> file is sent to browser in plain text; also, spaghetti
code in includes is not handled properly
e.g. <?php echo($blah)?> is handled but <?= $blah?> is sent to browser
as is, ll in the same file.
I have AddType specified in httpd.conf.


How do I fix this? Sorry if it's a common problem it's pretty hard to
google it.



.



Relevant Pages

  • Re: Ruby performance woes
    ... Now here's my take on all this: PHP and JSP and what I inquired ... S-expressions used as a directly alternate expression of SGML or XML. ... By the way, I've never had access to a Web server that can run ASP, ...
    (comp.lang.lisp)
  • Re: Object Oriented Content System - the idea
    ... >I expected php to be smarter then that. ... >form like bytecode in memory for the next request. ... each action added some stuff to a "response" XML document. ... that map/object/data and formats it for HTML display using an includeed PHP ...
    (comp.lang.php)
  • Re: Need help with PHP DOMXML - get_elements_by_tagname
    ... PHP as a supported platform. ... uses the built in XML handler CF MX provides. ... in newer versions of PHP and the method will *not* support xpath. ...
    (comp.lang.php)
  • Re: AJAX Help - responseXML always NULL
    ... to the PHP script I am calling, the XML file shows up just fine. ... the Content-Type header of the response does not fit. ... PHP Script on Server Side ...
    (comp.lang.javascript)
  • Re: [PHP] Arrays and performance
    ... where some of our customers have *alot* of products. ... XML file and prompts the user that this file is to large for automatic ... >From what I understand of your answer you're telling me that PHP ... itself will not have any "problems" working with 1.000.000.000 arrays, ...
    (php.general)