Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $compatible = true;
- if(PHP_VERSION_ID < 50500){
- print("Compatibility Error: PHP version is not >= 5.5.<br>");
- $compatible = false;
- }
- if (!class_exists('PDO')){
- print("Compatibility Error: PDO is not enabled.<br>");
- $compatible = false;
- }
- if(!function_exists('curl_version')){
- print("Compatibility Error: curl is not enabled.<br>");
- $compatible = false;
- }
- if(!function_exists('file_get_contents')){
- print("Compatibility Error: Function 'file_get_contents' is disabled.<br>");
- $compatible = false;
- }
- if(!function_exists('mkdir')){
- print("Compatibility Error: Function 'mkdir' is disabled.<br>");
- $compatible = false;
- }
- if(!function_exists('move_uploaded_file')){
- print("Compatibility Error: Function 'move_uploaded_file' is disabled.<br>");
- $compatible = false;
- }
- if(!function_exists('exif_imagetype')){
- print("Compatibility Error: Function 'exif_imagetype' is disabled.<br>");
- $compatible = false;
- }
- if($compatible === true){
- print("Host is compatible!");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement