i am working on windows platform. i am successful running huemap script by installing cygwin.
now i want to run that script in php using exec command.
so my question is can the same huemap script run in php without cygwin?
i gone through viewtopic.php?f=4&t=9631.
so if yes, then
I am having xampp sever for php. I set the foll paths in script file:
# set directory for temporary files
dir="C:\xampp\tmp " # suggestions are dir="." or dir="/tmp"
# set directory for location of IM commands -- no trailing /
imdir="C:\xampp\cgi-bin" # suggestions imdir="/usr/local/bin" or imdir= "/usr/bin"
I have below file in C:\xampp\htdocs\phpashwini\script.php
script.php
Code: Select all
<?php
$cmd=" bash C:\xampp\cgi-bin hue.sh veg.png hueveg.png";
exec($cmd,$result);
if($result=="0")
echo "sucess";
else
echo"fail";
?>
this is i had done considering that without cygwin we can run script in php.. i don't get the output what i am doing wrong?
thanks