I want to tar the directory "test",but when I execute the code:
$str=exec("tar -zcvf test.tar.gz test",$stu);
I get nothing.Why I can't get the test.tar.gz ?
I also met another problem when I run the code:
exec("ls / >temp",$stu);
I can't find the file "temp"
What wrong with my code ?Thanks