简体   繁体   中英

Running shell commands using PHP script

I'm creating an app using CodeIgniter, but I'm unable to run Linux commands using my PHP script.

How do I run terminal commands?

I've tried shell_exec() and exec() , but both don't work while using CI.

That depends on your server configuration if the functions are disabled, you need to enable them in your php.ini . Here are some alternatives:

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