How to call a bash script from php passing parameters
Posted
by skiria
on Stack Overflow
See other posts from Stack Overflow
or by skiria
Published on 2010-05-13T10:34:26Z
Indexed on
2010/05/13
10:44 UTC
Read the original article
Hit count: 331
I have a php script that execute a bash script. I try to pass parameters like this:
$script="/opt/lampp/htdocs/adapt.sh"
$file="/opt/lampp/htdocs/videos/video1.mp4"
$prefix="Test"
exec ('.$script.' '.$file.' '.$prefix.');
What's wrong? How can I pass the parameters?
© Stack Overflow or respective owner