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 #182210 is a reply to message #182206] Sat, 20 July 2013 13:29 Go to previous messageGo to previous message
Tim Streater is currently offline  Tim Streater
Messages: 328
Registered: September 2010
Karma:
Senior Member
In article <ksdsvp$2m8$1(at)news(dot)albasani(dot)net>,
The Natural Philosopher <tnp(at)invalid(dot)invalid> wrote:

> On 20/07/13 12:00, The Natural Philosopher wrote:
>>
>> I have been absolutely unsuccessful in putting PHP tags in a string.
>>
>> 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'
>> ??
>>
>>
> Ok scrub that.
>
> THIS worked.
> $run="something";
> $run="?>".$run;
> $run= $run."<?";
> $run=htmlspecaialchars($run);
> echo $run;

Or even:

echo htmpspecialchars ('?> ' . $something . ' <' . '?php');

--
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
[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 19:02:51 GMT 2024

Total time taken to generate the page: 0.07308 seconds