If you use the backtick operator (or shell_exec()), you can capture the entire output to a string and then hopefully find out what the problem is from there:
If you use the backtick operator (or shell_exec()), you can capture the entire output to a string and then hopefully find out what the problem is from there:
PHP Code:
$var = `cat text.txt > new_text.txt`;
echo $var;
I usually use backticks for this sort of thing too.