تأكد من أن الدالة exec مفعله في البي اتش بي ، فل نفترض انك تريد عمل التالي !
كود:
if(exec('/scripts/do/my/shell/code.sh')) { echo "my code was done !" } else { echo "Im sorry, can't run the sh file, there is a problem. please check if file have a exu. premissions. (chmod a+x file.sh)"; }
اترك تعليق: