Running cmd line .EXE through PHP
Hello to all!
I have a little problem...
I want to run a .exe file using php in Microsoft Windows XP. What i want to do is run a program for embedding a watermark in an image. So i have the agent.exe file that inserts the watermark into the image.
In windows I type simply in the command line: "agent path\blah-blah.jpeg path\blah-blah-new.jpeg". Now i want to do this through php for a website that I am developing...
I am new in php so I would like a little help.
Which is the right way? First use exec to call cmd.exe from WINDOWS\system32? Then use exec typing what i said above to watermark the image?
Even if it is so simple I tried it and the command exec('C:\WINDOWS\system32\cmd.exe'); doesn't do anything...
HEEELP...
Thanx in advance!!!
All you have to decide is what to do with the time that is given to you...
|