Created
February 23, 2018 12:01
-
-
Save Anan5a/f93bec7364487a246b647fee86df7ba8 to your computer and use it in GitHub Desktop.
Test Server Compatibility Rev 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo "Server Test :".PHP_EOL; echo "PHP version :".phpversion().PHP_EOL; try{ $db = new PDO("mysql:host=localhost;dbname=mlsbdcom_link1234",'mlsbdcom_link1234','EJxnPML7uor1'); echo "DB(L) ---> OK".PHP_EOL; }catch(PDOException $e){ throw new Exception("DB(L) ---> Error ::".$e->getMessage()); echo PHP_EOL; } | |
echo "Server software ---> ". $_SERVER['SERVER_SOFTWARE'].PHP_EOL; echo "Loaded Extensions : ".PHP_EOL; echo "<pre>"; foreach (get_loaded_extensions() as $x) { echo $x.PHP_EOL; } echo "</pre>"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment