Answer the question
In order to leave comments, you need to log in
Why doesn't the exec('php test.php > test.txt'); construct work?
The file is created, but the result of any command is not written to it. For example, the result of exec('php -i > test.txt'); is again an empty file.
PHP does not output exactly the result, exec('echo "test" > test.txt'); for example writes
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question