Re: <? vs <?php - bizzare problem
- From: "AlmostBob" <anonymous1@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 31 Mar 2007 16:12:25 GMT
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.
.
- References:
- <? vs <?php - bizzare problem
- From: Sergei Shelukhin
- <? vs <?php - bizzare problem
- Prev by Date: Re: [PHP] Parsing database variables
- Next by Date: RE: [PHP] Alternative/Addition to using a CAPTCHA
- Previous by thread: <? vs <?php - bizzare problem
- Next by thread: PHP code help
- Index(es):
Relevant Pages
|