note 56821 added to function.array
| From: | kbolino at osu1 dot php dot net | Date: | Thu, 15 Sep 2005 23:04:45 +0000 |
| Subject: | note 56821 added to function.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-95253@lists.php.net to get a copy of this message | ||
Historically, PHP used the single-prime character (`) for shell commands. The command was treated
like a string, except the value it represented was the entire resulting contents of standard output
stream from the command. For example,
<?php
ls
?>
would, on Unix-like systems, not return the string 'ls', but rather the output of the
command. For those unfamiliar with Unix, ls is like DIR on MS-DOS; it lists the files in the
current working directory. My guess would be that if no command of that name is found, then the
string passed is returned. The performance issues come from PHP creating a shell process and
attempting to execute the given command in it.
In MySQL, the single-prime (`) is used for normal quotation, so that probably explains why
phpMyAdmin might assume to use it for other things.
I cannot find anything in the manual about the single-prime character's current use; there is
probably a PHP.INI directive controlling its functionality now.
----
Manual Page -- http://www.php.net/manual/en/function.array.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56821
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56821&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56821&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56821&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56821&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56821&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+56821&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56821&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56821&report=yes
Search -- http://master.php.net/manage/user-notes.php