Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > php exec() and similar functions do not write on disk using iis
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 22nd March 23:34
arko
External User
 
Posts: 1
Default 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
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
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666