469,282 Members | 1,779 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

win32 exec() interacting with files problem (ImageMagick)

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
0 1739

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Morten | last post: by
4 posts views Thread by Andrew Crowe | last post: by
1 post views Thread by Geoff Soper | last post: by
6 posts views Thread by LRW | last post: by
3 posts views Thread by Joe | last post: by
4 posts views Thread by Andrew Crowe | last post: by
3 posts views Thread by Pekka Karjalainen | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.