I need to pass an actual CRLF to a program as an argument.
If I do:
shell_exec('echo "Hello World" >t.txt');
it works fine. But when I do:
shell_exec('echo "Hello
World" >t.txt');
it breaks. I need a way to pass an actual CRLF as an argument because ffmpeg
requires it when using -headers.
I need a solution for Windows/Linux.