Not working in my server.

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
anandselvaraj
Posts: 4
Joined: 2012-10-26T00:29:13-07:00
Authentication code: 67789

Not working in my server.

Post by anandselvaraj »

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.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Not working in my server.

Post by Bonzo »

Is this one of fmw42's scripts?

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');  
You also do not have an output file.
anandselvaraj
Posts: 4
Joined: 2012-10-26T00:29:13-07:00
Authentication code: 67789

Re: Not working in my server.

Post by anandselvaraj »

Thanks for your reply. Its working properly.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Not working in my server.

Post by fmw42 »

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.
Post Reply