Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. <?php
  2.  
  3. $compatible = true;
  4.  
  5. if(PHP_VERSION_ID < 50500){
  6. print("Compatibility Error: PHP version is not >= 5.5.<br>");
  7. $compatible = false;
  8. }
  9.  
  10. if (!class_exists('PDO')){
  11. print("Compatibility Error: PDO is not enabled.<br>");
  12. $compatible = false;
  13. }
  14.  
  15. if(!function_exists('curl_version')){
  16. print("Compatibility Error: curl is not enabled.<br>");
  17. $compatible = false;
  18. }
  19.  
  20. if(!function_exists('file_get_contents')){
  21. print("Compatibility Error: Function 'file_get_contents' is disabled.<br>");
  22. $compatible = false;
  23. }
  24.  
  25. if(!function_exists('mkdir')){
  26. print("Compatibility Error: Function 'mkdir' is disabled.<br>");
  27. $compatible = false;
  28. }
  29.  
  30. if(!function_exists('move_uploaded_file')){
  31. print("Compatibility Error: Function 'move_uploaded_file' is disabled.<br>");
  32. $compatible = false;
  33. }
  34.  
  35. if(!function_exists('exif_imagetype')){
  36. print("Compatibility Error: Function 'exif_imagetype' is disabled.<br>");
  37. $compatible = false;
  38. }
  39.  
  40. if($compatible === true){
  41. print("Host is compatible!");
  42. }
  43.  
  44. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement