Currently I have this problem in PHP, I am trying to make a simple webpage that executes some code in the shell and shows the proccess running the code I am trying to execute is this
wmic -U User%Passwd //192.168.1.3 "select Caption from Win32_Process"
In the shell it executes correctly (Ubuntu 14.04 LTS) but in PHP those double slashes are taken as a comment, like in this code
exec('wmic -U User%Passwd //'.$IP.' "select Caption from Win32_Process"',$exit);
However, the double forward slashes (//) are commenting the rest of the code!
How can I rewrite that code in order for PHP to interpret those double slashes not as a comment but as part of the code?
Thank you in advance