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... Quote Link to comment 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!"; } ?> Quote Link to comment 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 ... 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.