For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > February 2005 > mime_content_type()









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author mime_content_type()
David De Diego

2005-02-04, 8:58 am

HI,

I am using PHP 5.0.3 , apache 1.3.33 and MySQL 4.1.0 on Windows XP proffesional Edition.

I want to retrieve and store the MIME type of a binary large object by using the mime_content_type() function,
I have uncomment the php_mine_magic.dll extension to my php.ini and added this to it:

mime_magic.magicfile = "C:\path\to\php\install\magic.mime"

I have also placed a copy of the php_mine_magic.dll on C:\php\

scenario:

$form_data= $_POST['form_data']; // gets the picture via POST METHOD
$form_data_size= filesize($form_data);// works fine
$form_data_type= mime_content_type($form_data);// don't return anything.

can you help ?

kind regards

David de Diego.



---------------------------------
Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com