Welcome to PHPBuilder! When posting PHP code, please use the board's [noparse]
..
[/noparse] bbcode tags as they make your code much easier to read and analyze.
oconus;10996329 wrote:Would anyone be able to advise on why the shell_exec code is returning an error?
It isn't. PHP never got the chance to even try to execute the command because it couldn't even parse your PHP script.
After adding the bbcode tags, the reason for this becomes apparent; you've got unescaped double quotes inside of a double quote delimited string.
EDIT: Okay, vBulletin is quite broken and likes to mangle backslashes at times, so I switched back to [noparse]
..
[/noparse]. :/