Page 1 of 1

can't execute shell_exec()

PostPosted: 11. September 2014 11:34
by fisnmong3r
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:
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.

Re: can't execute shell_exec()

PostPosted: 11. September 2014 12:19
by Nobbie
ntbstat is a call to NetBIOS (over TCP/IP). Maybe there is no NetBIOS installed/active? It is unused in newer Windows Versions (since Windows 2000).

Re: can't execute shell_exec()

PostPosted: 11. September 2014 12:37
by fisnmong3r
I can use nbtstat in a command prompt without any issues.