Hi,
please help me guys,,,, I am new in this topic. How to run bash script in php. i used like this
$response = exec('-t "SOME PLAIN TEXT" -s plain -e normal -f Arial -p 48 -c royalblue -b white -u lightpink'); //executing shell command.
echo "<pre>$response</pre>";
I didn't get any output.
Not working in my server.
-
- Posts: 4
- Joined: 2012-10-26T00:29:13-07:00
- Authentication code: 67789
Re: Not working in my server.
Is this one of fmw42's scripts?
You need to have the full path to the bash script and CHMOD it to 777
You also do not have an output file.
You need to have the full path to the bash script and CHMOD it to 777
Code: Select all
exec('/FULL PATH TO /bash_script -t "SOME PLAIN TEXT" -s plain -e normal -f Arial -p 48 -c royalblue -b white -u lightpink');
-
- Posts: 4
- Joined: 2012-10-26T00:29:13-07:00
- Authentication code: 67789
Re: Not working in my server.
Thanks for your reply. Its working properly.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Not working in my server.
Please note that if you are using this script in a commercial web site, then you must contact me for a license. Please see my home page at the link below.