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 #182241 is a reply to message #182240] Tue, 23 July 2013 00:59 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 7/22/2013 7:56 PM, Norman Peelman wrote:
> On 07/22/2013 07:27 PM, Jerry Stuckle wrote:
>> On 7/22/2013 5:29 PM, Denis McMahon wrote:
>>> On Mon, 22 Jul 2013 17:00:00 -0400, Jerry Stuckle wrote:
>>>
>>>> On 7/22/2013 3:14 PM, Denis McMahon wrote:
>>>> > On Mon, 22 Jul 2013 17:41:13 +0100, Tim Streater wrote:
>>>> >
>>>> >> 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.
>>>> >
>>>> > Then it's something in his configuration that's different to my
>>>> > command
>>>> > line configuration.
>>>> >
>>>> >
>>>> Works the same for me as it did for Tim.
>>>>
>>>> Maybe you hit ctrl-Z (or ctrl-D on linux)?
>>>
>>> Nope, I did the following as Tim posted, starting from a shell prompt:
>>>
>>> php -a
>>> echo "this";
>>>
>>> And what appears on my screen is this:
>>>
>>> $ php -a
>>> Interactive shell
>>>
>>> php > echo "this";
>>> this
>>> php > exit
>>> $
>>>
>>> So if TNPs system is hanging after he enters the 'echo "this";' then my
>>> bet is that it's something he did to his configuration.
>>>
>>
>> What I get in both Windows and Linux is:
>>
>> C:\>php -a
>> Interactive mode enabled
>>
>> echo "this";
>>
>> Then after doing ctrl-Z (ctrl-D in Linux)
>>
>> echo "this";
>>
>> I could check through the php.ini options to see what affects this, but
>> considering the source of the problem, I really don't care.
>>
>
> I do believe you need to use proper starting and ending tags. You're
> output indicates PHP has simply passed-thru the text you entered. But
> yes CTRL-D or Z maybe should be the proper way to 'run' the code in
> Interactive *Mode*
>
>
>

I agree with the tags - I've always used them when testing. Here, I was
entering the text exactly as Dennis did, and showing I did NOT get the
results he did.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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:28:48 GMT 2024

Total time taken to generate the page: 0.04546 seconds