Problems Using Gettext for PHP

Hello, Im trying to use gettext for php to make a multilingual website. Right now its hosted at:

If you try to switch languages, it doesnt work. However, it works perfectly on my local webserver. I was wondering if anyone has any experience using gettext here. Here is the a snippet of the code im using:

<?php if (isSet($_GET["lang"])) $lang = $_GET["lang"]; putenv("LANG=$lang"); setlocale(LC_ALL, $lang); // Set the text domain as 'messages' $domain = 'messages'; bindtextdomain($domain, "./locale"); textdomain($domain); ?> <?php echo gettext("hello world!!"); ?>

If anyone could offer any insight I’d greatly appreciate it. Thank you!