how to run a .sh file from php?

后端 未结 3 1666
孤城傲影
孤城傲影 2020-11-30 10:17

I am trying to run a shell script using php

shell script ( /home/scripts/fix-perm.sh ) is in the same server

this is the code that i am trying

<         


        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 10:35

    I am not sure but you can try using chmod +x /home/scripts/fix-perm.sh on server at the first then try...

提交回复
热议问题