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 #182223 is a reply to message #182222] Mon, 22 July 2013 09:15 Go to previous messageGo to previous message
Alex vdB is currently offline  Alex vdB
Messages: 3
Registered: November 2012
Karma:
Junior Member
>>> php > $something="my text";
>>> php > $run="?> $something <?";
>>> php > echo $run;
>>> ?> my text <?
>>>
>> In my setup that produces no output at all.
>> Mind you php -a doesnt produce any output from
>> php> echo "this";
>>
>> either..
>>
>> Nor even a command prompt
>>
>> It just sits there...
>
> Under OS X that echoes this, IYSWIM.

I guess you all have different default options/settings.

Mine just outputs: echo "this";
as expected, because it isn't processed as PHP, because it is missing <?php
I do need to give end of file before anything is output.

php -a
<?php $run="?> something <";
echo $run;

outputs "?> something <?" just fine, again once the input is closed with end
of file.

and the following produces "?> something <?", once the EOF is received:
php -a
<?php
$saysomething="something";
$run="?> $saysomething <?";
echo $run;


Maybe try "php -n -a" and don't forget EOF as well as the php opening tag.
[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: Tue Nov 26 00:40:02 GMT 2024

Total time taken to generate the page: 0.04181 seconds