Re: Gnome and MIME types

From: Date: Fri, 30 Mar 2007 14:29:28 +0000
Subject: Re: Gnome and MIME types
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-251744@lists.php.net to get a copy of this message
"as you can see..." -- Helps to provide the feedback I am getting: Array ( [0] => -------------------- [1] => class.fileSystem.php [2] => tester.php [3] => -------------------- [4] => PHP script text [5] => PHP script text ) Nate On 3/30/07, Nathan Ziarek <nziarek@gmail.com> wrote:
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 I
don't
                                                 ^^^^^^^^^^^^^


« previous php.general (#251744) next »