简体   繁体   中英

How to run msgfmt using exec in php?

I am trying to use exec command in PHP as follows:

exec("msgfmt /locale/2019_11_26_17.po -o /locale/file.mo")

It is not allowing me to do it. However, if I run this command using terminal, it works.

Please help me to figure out what is going wrong?

Thank you, Trupti

Try that:

exec("msgfmt /locale/2019_11_26_17.po -o /locale/file.mo");

" <- is important for function.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM