Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/289.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php windows 64位上带有阿拉伯语的WAMP服务器2.2+gettext不工作_Php_Windows_Wamp_Gettext_Arabic - Fatal编程技术网

Php windows 64位上带有阿拉伯语的WAMP服务器2.2+gettext不工作

Php windows 64位上带有阿拉伯语的WAMP服务器2.2+gettext不工作,php,windows,wamp,gettext,arabic,Php,Windows,Wamp,Gettext,Arabic,我正在开发机器localhost上使用WAMP服务器2.2 php版本5.53.13 mysql版本5.5.24 我正在使用gettext。。poeditor.com生成的我的po&mo文件 我必须支持两种语言阿拉伯语+英语 php代码: $locale = "ar_QA"; if (isset($_GET["locale"])) $locale = $_GET["locale"]; putenv("LC_ALL=$locale"); putenv('LANG='.$locale); setlo

我正在开发机器localhost上使用WAMP服务器2.2 php版本5.53.13 mysql版本5.5.24

我正在使用gettext。。poeditor.com生成的我的po&mo文件

我必须支持两种语言阿拉伯语+英语

php代码:

$locale = "ar_QA";
if (isset($_GET["locale"])) $locale = $_GET["locale"];
putenv("LC_ALL=$locale");
putenv('LANG='.$locale);
setlocale(LC_ALL, $locale);

bindtextdomain("messages", "./locale");
bind_textdomain_codeset("messages", "UTF-8");
textdomain("messages");
文件夹结构如下所示:

LC_MESSAGES文件夹包含MESSAGES.po+MESSAGES.mo文件


在我的在线托管服务器linux操作系统上,阿拉伯语+英语都可以正常工作,但在我的开发机器windows server 2008上,64位英语可以正常工作,但阿拉伯语不能正常工作

可能太晚了,但我遇到了类似的问题,直到我在我的WAMP php设置中启用了short open tag