You can get the system name (or hostname) in PHP by using the gethostname()
function. Here's an example:
main.php67 chars3 lines
This will output something like System name: mycomputer.local
or System name: myserver.example.com
. Note that the actual format of the hostname depends on your system configuration.
gistlibby LogSnag