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 following to

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

Re: fileinfo help needed

2008-01-25 Thread powtac
And also on this google search result: http://www.google.com/search?aq=fhl=enclient=firefox-arls=org.mozilla%3Ade%3Aofficialhs=yOlq=pecl+fileinfo+supplied+argument+is+not+a+valid+file_infobtnG=Search --~--~-~--~~~---~--~~ You received this message because you are

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

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 PROTECTED]

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-openhttp://php.net/function.finfo-open]: Failed to load magic database at '(null)'. 2) if i have the following: $handle =

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 a fileinfo

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

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 you not

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:

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 23, 2008 3:10 PM,

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 get help?

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 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 following:

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()

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);

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 =

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

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 happens

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 backslash

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] wrote:

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 have