tas_pats Posted April 21, 2009 Report Share Posted April 21, 2009 Mēģināju noteikt audio faila mime tipu ar mime_content_type() un finfo_file(), bet izrādās, ka uz hosta nav uzinstalēti magic_mime un fileinfo moduļi. Vai ir vēl kāds drošs veids kā noskaidrot faila mime tipu? Quote Link to comment Share on other sites More sharing options...
Klez Posted April 21, 2009 Report Share Posted April 21, 2009 (edited) exec('file /var/www/phMagick/bildes/big/volvo.jpg'); # /var/www/phMagick/bildes/big/volvo.jpg: JPEG image data, JFIF standard 1.01 exec('file -i /var/www/phMagick/bildes/big/volvo.jpg'); # /var/www/phMagick/bildes/big/volvo.jpg: image/jpeg http://unixhelp.ed.ac.uk/CGI/man-cgi?file bet tas ja uz servera ir linux :) Edited April 21, 2009 by Klez Quote Link to comment Share on other sites More sharing options...
tas_pats Posted April 21, 2009 Author Report Share Posted April 21, 2009 exec() has been disabled for security reasons Laikam būs jākontaktējās vien ar hostu. Quote Link to comment Share on other sites More sharing options...
Klez Posted April 22, 2009 Report Share Posted April 22, 2009 var mēģināt citas ... system fcijas ... http://lv.php.net/exec Quote Link to comment Share on other sites More sharing options...
tas_pats Posted April 22, 2009 Author Report Share Posted April 22, 2009 (edited) Sakontaktējos ar hostingu un jau vakar tika uzinstalēts fileinfo modulis, bet paldies tev Klez par atsaucību. Edited April 22, 2009 by tas_pats Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.