FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » A curious thing...about tags.
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: A curious thing...about tags. [message #182214 is a reply to message #182212] Sat, 20 July 2013 17:40 Go to previous messageGo to previous message
Norman Peelman is currently offline  Norman Peelman
Messages: 126
Registered: September 2010
Karma:
Senior Member
On 07/20/2013 11:09 AM, Thomas Mlynarczyk wrote:
> The Natural Philosopher schrieb:
>
>> suppose I want my string to be "?> something <?"
>> How on earth is it possible to STOP PHP interpreting that as some
>> blasted 'escape to outputting text'
>
> Sorry, but I still don't quite see the problem. PHP will happily accept
> the above string as what it is: a simple string. It will not try to
> interpret the <? or ?> contained within that string (why should it?).
>
> Greetings,
> Thomas
>

Actually, it's the ?> that is causing the problem. If you attempt to:

echo "?> something <? something else";

in a browser, you get:

?> something

even though view source shows everything to be there. Inserting an
'invisible' character between <? or using htmlspecialchars() which turns
the > < into their html equivalents &gt &lt as NP found out shows that
it's a browser issue, not PHP.

--
Norman
Registered Linux user #461062
-Have you been to www.php.net yet?-
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Paypal IPN and HTTP 1.1
Next Topic: Query with PHP and MySql
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Sep 16 18:55:10 GMT 2024

Total time taken to generate the page: 0.41144 seconds