By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,614 Members | 1,674 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,614 IT Pros & Developers. It's quick & easy.

win32 exec() interacting with files problem (ImageMagick)

P: n/a
Hi guys,

I'm having some trouble using the exec() command on a Windows 2000 / IIS
server (PHP5rc2 running as ISAPI).

I can execute programs fine, but they are unable to interact with any files
on the server (either reading or writing).

Eg. if I call exec("type R:/webroot/website/file.php") from PHP I get
nothing (it works in a console window). Using the "copy" command outputs
"Access is denied".

I've tried fiddling with the IUSR permissions, made the test website run as
the Administrator account, allowed the IIS service to interact with the
desktop, but I just can't get executed programs to read or write files on
the machine.

Does anyone have any idea what's going on or how I can fix this?
On a side note what I'm trying to do with exec() is use the program
ImageMagick to do some image manipulation, so if there's another way to use
ImageMagick then that would help too :)
--
Regards,
Andrew Crowe
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.