hi pj...

single quotes are entered via the key directly left from the "return/enter"
key on most/all qwerty keyboards...

the 'backtic' is normally the shift '~' key... the key, right to the left of
the '1' key... in the upper left position of the keyboard...




-----Original Message-----
From: PJ [mailto:af.gour...@videotron.ca]
Sent: Tuesday, March 03, 2009 7:57 AM
To: Per Jessen
Cc: php-general@lists.php.net
Subject: Re: [PHP] whoami explanation


Per Jessen wrote:
> PJ wrote:
>
>
>> This really needs some explanation
>> I found this on the web:
>> <?php echo `whoami`; ?>
>> with it there was the comment "the direction of those single-quotes
>> matters" (WHY ?) and it works....
>>
>>
>
> GIYF - look up "back quotes".
>
>
>> But this (_*FROM THE PHP MANUAL***_ * -  exec()* executes the given
>> /command/ ) does not,
>> COPIED AND PASTED:
>> |<?php
>> // outputs the username that owns the running php/httpd process
>> // (on a system with the "whoami" executable in the path)
>> echo exec('whoami');
>> ?> |
>> What is going on here?
>>
>
> What sort of error did you get?  (it works fine here).
>
>
> /Per
>
forgot to add:
What's the difference between back ticks or quotes and regular single
quotes?
How does one enter back quotes from the keyboard?

--

Phil Jourdan --- p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to