开发者

MySQL CLI web environment halts on /<unix>

So I just made a question about symbols, but yeah, while the symbols are now working properly, there is still a problem with UNIX comman开发者_运维百科ds.

The thing is, whenever I input a value that starts with / and follows with a UNIX command, the host responds with - 501 Method Not Implemented.

What causes this, how to prevent this, and am I right that this happens because of MySQL in CLI environment?

Yes, here in Latvia currency is "Lats", abbreviated to "Ls" and our client tend to seperate values like - "Ls 3 for students, Ls 2 for retirees /Ls 1 for children". And the /Ls there screws it all up.

Thanks in advance!


http://php.net/manual/en/function.escapeshellcmd.php

However, if you're passing queries to Mysql via a command line, then you're defniitely doing it VERY VERY wrong. The mysql functions in PHP communicate directly with the database via sockets (either unix-domain or TCP). There should NEVER be a shell/command line involved in the process anywhere.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜