Re: fileinfo help needed

2008-01-25 Thread powtac
And also on this google search result: http://www.google.com/search?aq=f&hl=en&client=firefox-a&rls=org.mozilla%3Ade%3Aofficial&hs=yOl&q=pecl+fileinfo+supplied+argument+is+not+a+valid+file_info&btnG=Search --~--~-~--~~~---~--~~ You received this message because you

Re: fileinfo help needed

2008-01-25 Thread powtac
Take a look at this bug report on PECL: http://pecl.php.net/bugs/bug.php?id=7391 --~--~-~--~~~---~--~~ 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 unsu

Re: fileinfo help needed

2008-01-25 Thread bob
No, its still not working I might just move to Ubuntu Linux to see if that solves the problem... On Jan 24, 2008 8:46 AM, b logica <[EMAIL PROTECTED]> wrote: > > On Jan 24, 2008 12:53 AM, bob <[EMAIL PROTECTED]> wrote: > > Just magic.mime > > > > Maybe it's a Windows thing. Try adding the fo

Re: fileinfo help needed

2008-01-24 Thread b logica
On Jan 24, 2008 12:53 AM, bob <[EMAIL PROTECTED]> wrote: > Just magic.mime > Maybe it's a Windows thing. Try adding the following to your php.ini: [mime_magic] mime_magic.debug = On mime_magic.magicfile = 'c:\magic.mime' --~--~-~--~~~---~--~~ You received this me

Re: fileinfo help needed

2008-01-23 Thread bob
Just magic.mime On Jan 23, 2008 7:46 PM, b logica <[EMAIL PROTECTED]> wrote: > > On Jan 23, 2008 3:38 AM, bob <[EMAIL PROTECTED]> wrote: > > Here is something interesting: > > > > 1) if i have the following: > > $handle = finfo_open(FILEINFO_MIME); > > The output i get is finfo_open() [fu

Re: fileinfo help needed

2008-01-23 Thread b logica
On Jan 23, 2008 3:38 AM, bob <[EMAIL PROTECTED]> wrote: > 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]: Failed to load > magic database at '(null)'. > > 2) if i have the follow

Re: fileinfo help needed

2008-01-23 Thread Samuel DeVore
On Jan 23, 2008 1:48 PM, bob <[EMAIL PROTECTED]> wrote: > what OS are you guys using? mac os x (10.3, 10.4, 10.5) for various installs installs on shared servers running linux (who knows what flavors) a solaris box my iphone (no just kidding) --~--~-~--~~~---~--~---

Re: fileinfo help needed

2008-01-23 Thread bob
what OS are you guys using? On Jan 23, 2008 12:34 PM, Samuel DeVore <[EMAIL PROTECTED]> wrote: > > might start with http://www.php.net/support.php and the php general list > there > > Sam D > > On Jan 23, 2008 1:32 PM, bob <[EMAIL PROTECTED]> wrote: > > agree .. so any recommendation on where to

Re: fileinfo help needed

2008-01-23 Thread Samuel DeVore
might start with http://www.php.net/support.php and the php general list there Sam D On Jan 23, 2008 1:32 PM, bob <[EMAIL PROTECTED]> wrote: > agree .. so any recommendation on where to get help? > > > > > On Jan 23, 2008 12:27 PM, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > > > > > > On Jan 2

Re: fileinfo help needed

2008-01-23 Thread Chris Hartjes
On Jan 23, 2008 3:32 PM, bob <[EMAIL PROTECTED]> wrote: > agree .. so any recommendation on where to get help? /me sighs *Not* on a mailing list for CakePHP for starters. -- Chris Hartjes Internet Loudmouth Motto for 2008: "Moving from herding elephants to handling snakes..." @TheKeyBoard: htt

Re: fileinfo help needed

2008-01-23 Thread bob
agree .. so any recommendation on where to get help? On Jan 23, 2008 12:27 PM, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > On Jan 23, 2008 3:10 PM, bob <[EMAIL PROTECTED]> wrote: > > No I've been googling for solutions but there is no one with similar > > situation... > > Fair enough...but would

Re: fileinfo help needed

2008-01-23 Thread Chris Hartjes
On Jan 23, 2008 3:10 PM, bob <[EMAIL PROTECTED]> wrote: > No I've been googling for solutions but there is no one with similar > situation... Fair enough...but would you not agree that this is not a CakePHP issue at this point? -- Chris Hartjes Internet Loudmouth Motto for 2008: "Moving from he

Re: fileinfo help needed

2008-01-23 Thread bob
No I've been googling for solutions but there is no one with similar situation... On Jan 23, 2008 6:01 AM, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > On Jan 23, 2008 3:38 AM, bob <[EMAIL PROTECTED]> wrote: > > > > What does this mean? > > I think it means that this is not a Cake problem, but

Re: fileinfo help needed

2008-01-23 Thread Chris Hartjes
On Jan 23, 2008 3:38 AM, bob <[EMAIL PROTECTED]> wrote: > > What does this mean? I think it means that this is not a Cake problem, but a fileinfo extension problem. Google hasn't provided any potential answers? -- Chris Hartjes Internet Loudmouth Motto for 2008: "Moving from herding elephants t

Re: fileinfo help needed

2008-01-23 Thread bob
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]: Failed to load magic database at '(null)'. 2) if i have the following: $handle = finfo_open(FILEI

Re: fileinfo help needed

2008-01-23 Thread bob
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 PROTEC

Re: fileinfo help needed

2008-01-22 Thread b logica
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 h

Re: fileinfo help needed

2008-01-22 Thread bob
anybody face a similar issue? On Jan 22, 2008 2:17 PM, bob <[EMAIL PROTECTED]> wrote: > var_dump() returns null. debug() does not return any extra useful info. > [sigh...] > > On Jan 22, 2008 12:08 PM, b logica <[EMAIL PROTECTED]> wrote: > > > > > On Jan 22, 2008 2:41 PM, bob <[EMAIL PROTECTED]

Re: fileinfo help needed

2008-01-22 Thread bob
var_dump() returns null. debug() does not return any extra useful info. [sigh...] On Jan 22, 2008 12:08 PM, b logica <[EMAIL PROTECTED]> wrote: > > On Jan 22, 2008 2:41 PM, bob <[EMAIL PROTECTED]> wrote: > > Thanks for your reply. I don't think it is case sensitive, nor do i > think > > that the

Re: fileinfo help needed

2008-01-22 Thread b logica
On Jan 22, 2008 2:41 PM, bob <[EMAIL PROTECTED]> wrote: > Thanks for your reply. I don't think it is case sensitive, nor do i think > that the backslash direction matters (I've tested it with same errors). > > I am aware about putting the exit() but i just commented it out so i could > see what ha

Re: fileinfo help needed

2008-01-22 Thread bob
Thanks for your reply. I don't think it is case sensitive, nor do i think that the backslash direction matters (I've tested it with same errors). I am aware about putting the exit() but i just commented it out so i could see what happens if it tried to do this finfo_open(FILEINFO_COMPRESS,'c:/magi

Re: fileinfo help needed

2008-01-22 Thread b logica
On Jan 22, 2008 4:24 AM, bob <[EMAIL PROTECTED]> wrote: > > Hi > > I am having trouble getting the PHP PECL fileinfo component to work. I > am using Cakephp 1.2, XAMPP in WIndows Vista environment. > > I have the following code: > $file = "C:\xampp\htdocs\app\webroot\pics\file.jpg"; > > $handle =

fileinfo help needed

2008-01-22 Thread bob
Hi I am having trouble getting the PHP PECL fileinfo component to work. I am using Cakephp 1.2, XAMPP in WIndows Vista environment. I have the following code: $file = "C:\xampp\htdocs\app\webroot\pics\file.jpg"; $handle = finfo_open(FILEINFO_COMPRESS,'c:/magic');// FILEINFO_COMPRESS,"c:/magic")