Page 1 of 1

problems with system() function

Posted: Mon Jul 17, 2006 9:20 am
by Zoran_Dimov
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??

Posted: Mon Jul 17, 2006 10:11 am
by Burrito
you could try exec().

if you look at the bottom of the description section you'll see some other alternative as well.