win32 exec() interacting with files problem (ImageMagick)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Crowe

    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


Working...