note 52445 added to function.shell-exec
| From: | noia at osu1 dot php dot net | Date: | Sun, 01 May 2005 22:14:46 +0000 |
| Subject: | note 52445 added to function.shell-exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88844@lists.php.net to get a copy of this message | ||
In the command line i used gdalinfo, I gave the full pathname for a particular file, this is the
command:
$command= ('gdalinfo /var/www/html/map/data/sst.jpg');
$output=nl2br(shell_exec($command));
My question is, i want to get all the files with image extensions from the same pathname instead of
just one file as shown in the command line above. How can i go about it?
----
Manual Page -- http://www.php.net/manual/en/function.shell-exec.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52445
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52445&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52445&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52445&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52445&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52445&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52445&report=yes
Search -- http://master.php.net/manage/user-notes.php