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 #182239 is a reply to message #182229] Mon, 22 July 2013 23:52 Go to previous messageGo to previous message
Norman Peelman is currently offline  Norman Peelman
Messages: 126
Registered: September 2010
Karma:
Senior Member
On 07/22/2013 12:41 PM, Tim Streater wrote:
> In article <ksj1ah$cqr$3(at)dont-email(dot)me>,
> Norman Peelman <npeelman(at)cfl(dot)rr(dot)com> wrote:
>
>> On 07/22/2013 03:47 AM, The Natural Philosopher wrote:
>
>>>> Interactive shell
>>>>
>>>> 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...
>
>> Well, then how are you 'running' your code? You show a command
>> prompt above. The interactive shell executes each line as you type it
>> in. I can't even imagine what your setup is without you telling.
>
> Then get a clue. TNP uses PHP at the command line with:
>
> php -a
>
> He then enters:
>
> echo "this";
>
> at the prompt, and it hangs. There. That wasn't too hard to figure out,
> was it.
>

It's not hanging, but waiting for proper EOF. But also probably needs
proper starting and ending tags as well.


<?php
echo "?> something <?";
?>
CTRL-D (or Z maybe)


--
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: Tue Nov 26 00:56:10 GMT 2024

Total time taken to generate the page: 0.05374 seconds