can't execute shell_exec()
Posted: 11. September 2014 11:34
I had a xampp on a server 2002, and now I migrated it to a server 2008. Same version, same settings, copied everything to the new location.
Now the below script not runs:
Though $_SERVER['REMOTE_ADDR'] returns the IP, but the above code returns nothing.
I suppose this is some permission issue? It can't execute the code on the new server? Under what user (SYSTEM?) are these codes run?
Please help me.
Now the below script not runs:
- Code: Select all
$cmdResult = shell_exec('nbtstat -A ' .$_SERVER['REMOTE_ADDR']);
Though $_SERVER['REMOTE_ADDR'] returns the IP, but the above code returns nothing.
I suppose this is some permission issue? It can't execute the code on the new server? Under what user (SYSTEM?) are these codes run?
Please help me.