For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > March 2008 > php exec() and similar functions do not write on disk using iis









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author php exec() and similar functions do not write on disk using iis
arko

2008-03-04, 7:02 pm

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
on disk,
but it doesn't. I can't write anything on disk this way. I used exec()
funtion and
similar, but they don't work. For example, this code

<?
$c = "dir c:\\ > c:\\inetpub\\wwwroot\\something\\foo.txt";
exec("$c");
?>

does not create the file foo.txt.

You should know that
- The programs are run, as i could check using passthru() rather than
exec(), but
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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com