KLS_andy Posted June 12, 2007 Share Posted June 12, 2007 hi..there...i'm a newbie to PHP..Can u all help me with my problem..I want to check if the client browser support pdf reading or not, so i can direct it to adobe reader web to install the reader...any solution for my problem?? ??? thanz before... Link to comment https://forums.phpfreaks.com/topic/55212-how-to-check-if-client-browser-support-pdf-or-not/ Share on other sites More sharing options...
vbnullchar Posted June 12, 2007 Share Posted June 12, 2007 http://planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2071&lngWId=8 <?php ob_start( ); phpinfo( ); $phpinfo = ob_get_contents( ); ob_end_clean( ); if (strpos($phpinfo, "module_pdf") === FALSE) { echo "You do not have PDF support in your PHP, sorry."; } else { echo "You have PDF support!"; } ?> Link to comment https://forums.phpfreaks.com/topic/55212-how-to-check-if-client-browser-support-pdf-or-not/#findComment-272933 Share on other sites More sharing options...
KLS_andy Posted June 12, 2007 Author Share Posted June 12, 2007 thanz for the reply and the solutin , but i have already tried your code and it doesn't work..isn't that for checking the server whether pdf support is enabled or not??? i'm a little bit confused ... Link to comment https://forums.phpfreaks.com/topic/55212-how-to-check-if-client-browser-support-pdf-or-not/#findComment-272951 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.