22nd March 23:34
php exec() and similar functions do not write on disk using iis
I use php 5 on iis in a windows 2003 server machine.
I should start through php a dos program which should write an output
but it doesn't. I can't write anything on disk this way. I used exec()
similar, but they don't work. For example, this code
$c = "dir c:\\ > c:\\inetpub\\wwwroot\\something\\foo.txt";
does not create the file foo.txt.
You should know that
- The programs are run, as i could check using passthru() rather than
they don't write on disk
- I have given permission to the internet user to write in the
directory where the file
should be created
- I have given permission to run the programs called by exec()
- I have allowed to run executable programs in iis
Anyone can help?
Thank you very much