problems with system() function
Posted: Mon Jul 17, 2006 9:20 am
I am trying to execute DOS command with the function system()
$res=system("c:\Program Files\ImageMagick-6.2.8-Q16\convert.exe"
"x:\web\tmobile-jpg-generator\top_nav.gif"
-density 288 -fill #666666 -font Arial -pointsize 13 -background #ffffff label:"dimov" -resize 80%"x:\web\tmobile-jpg-generator\smile.gif",$retval)
I am running PHP on Apache (Windows)
When i try to execute the same command directly in DOS it is OK
Is there some other function for executing commands??
$res=system("c:\Program Files\ImageMagick-6.2.8-Q16\convert.exe"
"x:\web\tmobile-jpg-generator\top_nav.gif"
-density 288 -fill #666666 -font Arial -pointsize 13 -background #ffffff label:"dimov" -resize 80%"x:\web\tmobile-jpg-generator\smile.gif",$retval)
I am running PHP on Apache (Windows)
When i try to execute the same command directly in DOS it is OK
Is there some other function for executing commands??