Would anyone be able to advise on why the shell_exec code is returning an error? If more information is needed, please let me know. Thanks in advance.
Error Message
Parse error: syntax error, unexpected '.' on line 3
Complete Code (and the only line of code in the script)
$cleana = shell_exec ("find . -iname '*.txt' -exec replace "\\" "" -- {} \;");
For note, when executing "find . -iname '*.txt' -exec replace "\" "" -- {} \;" through ssh it works correctly (not sure if this is relevant)
Php Version 5.2.17