Answer the question
In order to leave comments, you need to log in
Why isn't bash running under php?
The script.sh script is located at /home/user/script.sh:
#!/bin/bash
echo "Успешно!"
<?php
$message=shell_exec("/home/user/script.sh 2>&1");
print_r($message);
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question