----- Original Message -----
From: "Tijnema !" <tijnema@xxxxxxxxx>
On 3/27/07, Matt Arnilo S. Baluyos (Mailing Lists)
<matt.baluyos.lists@xxxxxxxxx> wrote:
Hello everyone,
I have a working lighttpd + fastcgi + PHP + eaccelerator installation.
I have also enabled short tags on the /usr/local/lib/php.ini but I'm
having problems with PHP not escaping the short tags.
To better illustrate, my phpinfo() file can be accessed at
http://202.171.164.70/phpinfo.php - if you notice short_open_tag is
set to "On".
But when you access a PHP page at
http://202.171.164.70/admin/login.php and try to view the source, the
short open tag is not escaped.
Any reason why this isn't working as expected?
Regards,
Matt
You also use XML in your page, and thereby i would NOT recommend using
short tags. as xml tags also start with <?
Indeed, <?xxx is called a 'Processing Instruction' (PI) and the <? should
be followed by some identifier indicating the nature of that PI, the
identifier XML, in any combination of upper and lower case letter is
reserved. So, contrary to other means of escaping out of HTML mode, such as
ASPs <% tags, the <?php prefix is perfectly valid. A short tag, though, a
simple <? is invalid since it lacks the identifier of the expected recipient
of that PI.
Though it doesn't work that way, PIs would in principle, allow several
interpreters each to handle a section of an XML file so if you could chain
interpreters or it there were a master PI dispatcher, a single source file
could mix several processors of whatever is contained within PIs, not only
procedural languages such as PHP but any other kind of process.
Satyam
Better learn to start PHP tags with <?php and disable the short tags.
This way i cannot ever give problems with the <?xml tags.s
Tijnema
--
Stand before it and there is no beginning.
Follow it and there is no end.
Stay with the ancient Tao,
Move with the present.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.18/734 - Release Date:
26/03/2007 14:31
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php