Getting type of file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
phpcoder
Forum Contributor
Posts: 158
Joined: Sat Nov 02, 2002 1:18 pm
Location: Manchester, UK

Getting type of file

Post 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...
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

mime_content_type
(PHP 4 >= 4.3.0, PHP 5)
Are you using PHP >= 4.3.0 or PHP 5 ?
User avatar
phpcoder
Forum Contributor
Posts: 158
Joined: Sat Nov 02, 2002 1:18 pm
Location: Manchester, UK

Post 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
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post 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?
User avatar
phpcoder
Forum Contributor
Posts: 158
Joined: Sat Nov 02, 2002 1:18 pm
Location: Manchester, UK

Post 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
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Post Reply