开发者

How to use shell_exec() function in a php domain?

开发者 https://www.devze.com 2023-01-16 21:26 出处:网络
I found the shell_exec() function is disabled in my re开发者_开发技巧mote server. Is there is any other way or tips to execute the shell_exec() function?Well, there are some alternatives (eg system()

I found the shell_exec() function is disabled in my re开发者_开发技巧mote server.

Is there is any other way or tips to execute the shell_exec() function?


Well, there are some alternatives (eg system(), exec(), passthru(), backtick operator), but my guess is that they will be disabled too :)

I think you're out of luck here!


Is there is any other way or tips to execute the shell_exec() function?

Probably no, because the function is usually disabled for security reasons.

You would have to talk to your provider, or - if possible - look for a PHP library that does what you want to do without needing shell_exec()


You can see ref of official documentation

[http://www.php.net/manual/en/ref.exec.php][1]
0

精彩评论

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