Unable to execute some windows commands
Posted: Fri Dec 24, 2010 5:21 am
Hi forum ,
I trying to execute commands using php. for example using the following code i am renaming a file
echo exec("ren cfile.php cfile.txt");
while i try to execute this code in my windows server it doesn't work , i test the same code in my localhost (local machine) its working fine and able to rename the file.
when i try with another command like " echo exec("tasklist"); " it working as like in the localsystem .
So please suggest me why i am unable to rename on my windows server.
thanking you in advance
I trying to execute commands using php. for example using the following code i am renaming a file
echo exec("ren cfile.php cfile.txt");
while i try to execute this code in my windows server it doesn't work , i test the same code in my localhost (local machine) its working fine and able to rename the file.
when i try with another command like " echo exec("tasklist"); " it working as like in the localsystem .
So please suggest me why i am unable to rename on my windows server.
thanking you in advance