Hi guys,
I'm having trouble executing commands using exec() or system() that need to
write files.
I've set the permissions on CMD.EXE but I can't use exec() to write any
files, even if the folder I'm writing to has write access to IUSER account
and PHP can write to the folder directly.
eg. Calling exec('echo hello >C:\writablefol der\text.txt') does nothing,
but if I type that same command into a shell prompt it works fine.
Also just calling exec('echo hello') returns "hello" so it's definatly
executing the command.
Does anyone know how I can fix this? What I'm trying to do is use
ImageMagick to do some image manipulation. Version of PHP I'm using is 5
rc2 on Win2k IIS using the isapi module.
Thanks
Andrew
I'm having trouble executing commands using exec() or system() that need to
write files.
I've set the permissions on CMD.EXE but I can't use exec() to write any
files, even if the folder I'm writing to has write access to IUSER account
and PHP can write to the folder directly.
eg. Calling exec('echo hello >C:\writablefol der\text.txt') does nothing,
but if I type that same command into a shell prompt it works fine.
Also just calling exec('echo hello') returns "hello" so it's definatly
executing the command.
Does anyone know how I can fix this? What I'm trying to do is use
ImageMagick to do some image manipulation. Version of PHP I'm using is 5
rc2 on Win2k IIS using the isapi module.
Thanks
Andrew
Comment