fax cron추가
Some checks failed
Close Pull Request / main (pull_request_target) Has been cancelled

This commit is contained in:
yangsh
2026-01-23 15:08:41 +09:00
parent 929d885b2b
commit 26db8eb602
5 changed files with 443 additions and 5 deletions

View File

@@ -0,0 +1,13 @@
<?php
if (!function_exists('get_linux_hostname')) {
/**
* hostname을 읽어옴... $_SERVER['HOSTNAME']을 대신해서 사용하기 위함.
*/
function get_linux_hostname()
{
preg_match('/HOSTNAME=(.*)/', file_get_contents('/etc/sysconfig/network'), $network);
list($key, $hostname) = explode('=', $network[0]);
return $hostname;
}
}