Here is something interesting:

1) if i have the following:
    $handle = finfo_open(FILEINFO_MIME);
    The output i get is finfo_open()
[function.finfo-open<http://php.net/function.finfo-open>]:
Failed to load magic database at '(null)'.

2) if i have the following:
    $handle = finfo_open(FILEINFO_MIME,'ssdfgsdsfdasdfs');
    of if i have the following:
     $handle = finfo_open(FILEINFO_MIME,'c:\magic');
     I do not get the above warning, but var_dump($handle) returns false;

3) if i have the following
    $handle = finfo_open(FILEINFO_MIME,'c:\magic.mime');
    finfo_open() [function.finfo-open <http://php.net/function.finfo-open>]:
Failed to load magic database at 'C:\magic.mime'.

What does this mean?



On Jan 23, 2008 12:13 AM, bob <[EMAIL PROTECTED]> wrote:

> Sorry, you're right, var_dump($handle) returns false... I can open the
> magic file.
>
> No, open_basedir and safe_mode are not enabled. Should I enable them? What
> should i set them to? thanks.
>
>   On Jan 22, 2008 8:51 PM, b logica <[EMAIL PROTECTED]> wrote:
>
> >
> > On Jan 22, 2008 5:17 PM, bob <[EMAIL PROTECTED]> wrote:
> > > var_dump() returns null. debug() does not return any extra useful
> > info.
> > > [sigh...]
> > >
> >
> > Hmm ... shouldn't be null. Anything in the error log? Maybe the magic
> > file can't be opened? Although, I'd think it's return false in that
> > case.
> >
> > Do you have open_basedir or safe_mode enabled in php.ini?
> >
> > b
> >
> > > >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to