Re: Gnome and MIME types

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good call :-)

Yes, safe mode is turned off.

On 3/29/07, Tijnema ! <tijnema@xxxxxxxxx> wrote:
On 3/29/07, Nathan Ziarek <nziarek@xxxxxxxxx> wrote:
> /etc/php5/apache2/php.ini has the uncommented line "safe_mode = Off"
>
> Assuming there isn't another file that can override that setting, my
> safe mode is off.
>
> Thanks,
>
> Nate

better check this using phpinfo:
<?php phpinfo(); ?>

Tijnema
>
> On 3/29/07, Peter Lauri <lists@xxxxxxxxxxx> wrote:
> > Is php safe mode on or off?
> >
> > Best regards,
> > Peter Lauri
> >
> > www.dwsasia.com - company web site
> > www.lauri.se - personal web site
> > www.carbonfree.org.uk - become Carbon Free
> >
> >
> > > -----Original Message-----
> > > From: Nathan Ziarek [mailto:nziarek@xxxxxxxxx]
> > > Sent: Thursday, March 29, 2007 9:30 PM
> > > To: php-general@xxxxxxxxxxxxx
> > > Subject:  Gnome and MIME types
> > >
> > > I'm having a hard time getting solid MIME Types of various files.
> > >
> > > On my Ubuntu/Apache2/PHP5 system, I first attempted to install
> > > fileInfo. That didn't go so well (on Safari even running "$finfo =
> > > finfo_open(FILEINFO_MIME);" causes it to complain that it lost the
> > > network connection; Firefox prompts me to download the file_ and
> > > seeing as it is not really ready for release, I thought I should stay
> > > away from that.
> > >
> > > I then tried running "system("file -i -m /usr/share/docs/mim file")"
> > > which worked, but file doens't provide very good mime types -- all
> > > Microsoft Office Documents returned nothing, for example.
> > >
> > > I then stumbled upon gnomevfs-info that provided the information I
> > > wanted. I don't know what mime database it is using (couldn't find it)
> > > but it sure seemed more complete than anything else I had used.
> > >
> > > Problem is, I can't seem to run it from within a PHP script (system,
> > > exec, etc). I used the full path (/usr/bin/gnamevfs-info) so I don't
> > > believe that to be the problem, and the page has no errors (I am using
> > > error_reporting(E_ALL)).
> > >
> > > Any tips or suggestions?
> > >
> > > Thanks!
> > >
> > > Nate
> > >
> > > --
> > > 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
>
>


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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux