Re: Gnome and MIME types
| From: | Nathan Ziarek | Date: | Fri, 30 Mar 2007 14:28:14 +0000 |
| Subject: | Re: Gnome and MIME types | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-251743@lists.php.net to get a copy of this message | ||
Ooooh. That would have been likely, too. It is typed in correctly in the script.
Just to test, my entire script is nothing more than:
<?PHP
exec("/usr/bin/gnomevfs-info", $array);
$array[] = "--------------------";
exec("ls", $array);
$array[] = "--------------------";
exec("file -i -b *", $array);
echo "<pre>" . print_r($array, true) . "</pre>";
?>
I was using it to test the output, which works on both "ls" and
"file." Running "gnomevfs-info" without a file pumps out "Usage:
/usr/bin/gnomevfs-info <uri>" at the command line. As you can see, it
pumps out nothing when run in PHP.
I can't for the life of me think of a reason for it not to give me any
indication of why it isn't working. No errors, no results.
Nate
On 3/29/07, Edward Vermillion <evermillion@doggydoo.net> wrote:
Just going out on a limb here, but did you mis-type it in the script also?I then stumbled upon gnomevfs-info that provided the information I^^^^^^^^^^^^^exec, etc). I used the full path (/usr/bin/gnamevfs-info) so Idon't^^^^^^^^^^^^^