Page 1 of 1

Getting type of file

Posted: Sat Jul 31, 2004 9:50 am
by phpcoder
Hi,
I have some prob . m developing file manager that displays file attributes i have some prob in getting the file type plz help me .
i tried to use
mime_content_type($file);
but i got error call to undefine func...

Posted: Sat Jul 31, 2004 9:52 am
by markl999
mime_content_type
(PHP 4 >= 4.3.0, PHP 5)
Are you using PHP >= 4.3.0 or PHP 5 ?

Posted: Sat Jul 31, 2004 9:55 am
by phpcoder
markl999 wrote:
mime_content_type
(PHP 4 >= 4.3.0, PHP 5)
Are you using PHP >= 4.3.0 or PHP 5 ?
m using php 4.2.2

Posted: Sat Jul 31, 2004 9:58 am
by markl999
4.2.2 is over 2 years old now. Can't you upgrade to the latest stable version or bug your host to do so?

Posted: Sat Jul 31, 2004 10:00 am
by phpcoder
markl999 wrote:4.2.2 is over 2 years old now. Can't you upgrade to the latest stable version or bug your host to do so?
ok
from where i can get php rpm 4.5

Posted: Sat Jul 31, 2004 10:03 am
by markl999