Answer the question
In order to leave comments, you need to log in
How to run sh file in php?
Can't run sh (bash) file with root rights via php
Answer the question
In order to leave comments, you need to log in
echo `chmod -R 777`
The backticks force the command to be executed.
There is such a practice. I write the first line in the sh script that will call the interpreter and pass it the program code directly in the same file on the next line. But for scripting on a Unix system like this, it's best to use sh itself. either Python or Ruby (Python is standard in Ubuntu for this though) ruby is just as good.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question