PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I tried shell_exec() and passthru() (and system I think, but can't remember now). I tried escapeshellarg() but the input string remains identical. Exec works fine for other arguments though, for example:
I can't see why it would. The echo (which I pasted into the bit of code above without modification) appears to be identical to the aruments that succeed from the command line.
If that were necessary the error would show in the echo but it doesn't. The only thing an an escape changes is another backslash or a quote. In all other cases it is dealt with as literal. Nevertheless I've tested as you suggest and there is no change.
Thanks for the tip stereofrog, I still haven't found the problem though. I think I'll leave it a few days and come back to it fresh. It's probably something silly.