Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <?php
  2. //This is a dirty workaround. Try it only if knew what you are doing.
  3. //make sure to adjust the path or make sure the language ini file is also located in same folder as this script
  4. error_reporting(E_ALL);
  5. if(function_exists('parse_ini_file')) {
  6. $ini_array = parse_ini_file('en-GB.com_example.ini');
  7. print_r($ini_array);
  8. }else {
  9. echo 'Sorry parse_ini_file function is disabled in your PHP settings. Enable it before running this script';
  10. }
  11. //if you get the output of the language strings all ok. If you get a fatal error, you will see where the error occurs.
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement