can't execute shell_exec()

Problems with the Windows version of XAMPP, questions, comments, and anything related.

can't execute shell_exec()

Postby fisnmong3r » 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:
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.
fisnmong3r
 
Posts: 3
Joined: 11. September 2014 11:27
Operating System: Windows 2008

Re: can't execute shell_exec()

Postby Nobbie » 11. September 2014 12:19

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).
Nobbie
 
Posts: 8770
Joined: 09. March 2008 13:04

Re: can't execute shell_exec()

Postby fisnmong3r » 11. September 2014 12:37

I can use nbtstat in a command prompt without any issues.
fisnmong3r
 
Posts: 3
Joined: 11. September 2014 11:27
Operating System: Windows 2008


Return to XAMPP for Windows

Who is online

Users browsing this forum: hthnightwolf and 64 guests