|
|
|
รบกวนพี่ ๆ ขอ code ที่แสดงชื่อ domain ด้วยค่ะ อยากทราบการแสดงผลค่ะ |
|
|
|
|
|
|
|
print_r($_SERVER); แล้วเลือกเอา element ที่ต้องการ
Code
Array
(
[PROCESSOR_ARCHITEW6432] => AMD64
[_FCGI_X_PIPE_] => \\.\pipe\IISFCGI-10f8bc9b-cc96-427c-91bc-c9131921b92c
[PHP_FCGI_MAX_REQUESTS] => 10000
[PHPRC] => C:\Program Files (x86)\PHP\v5.6
[ALLUSERSPROFILE] => C:\ProgramData
[APPDATA] => C:\Windows\system32\config\systemprofile\AppData\Roaming
[APP_POOL_CONFIG] => C:\inetpub\temp\apppools\DefaultAppPool\DefaultAppPool.config
[APP_POOL_ID] => DefaultAppPool
[CommonProgramFiles] => C:\Program Files (x86)\Common Files
[CommonProgramFiles(x86)] => C:\Program Files (x86)\Common Files
[CommonProgramW6432] => C:\Program Files\Common Files
[COMPUTERNAME] => TKPD
[ComSpec] => C:\Windows\system32\cmd.exe
[ESET_OPTIONS] =>
[FP_NO_HOST_CHECK] => NO
[LOCALAPPDATA] => C:\Windows\system32\config\systemprofile\AppData\Local
[NUMBER_OF_PROCESSORS] => 2
[OS] => Windows_NT
[Path] => C:\Program Files\AuthenTec TrueSuite\;C:\Program Files\AuthenTec TrueSuite\x86;C:\Program Files (x86)\PHP\v5.6;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\PHP\v5.3;C:\Program Files (x86)\CollabNet;C:\Program Files (x86)\Embarcadero\Studio\14.0\bin;C:\Users\Public\Documents\Embarcadero\Studio\14.0\Bpl;C:\Program Files (x86)\Embarcadero\Studio\14.0\bin64;C:\Users\Public\Documents\Embarcadero\Studio\14.0\Bpl\Win64;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\OpenVPN\bin;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Pr;C:\Program Files (x;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\MySQL\MySQL Utilities 1.4.4\;C:\Program Files (x86)\MySQL\MySQL Utilities 1.4.4\Doctrine extensions for PHP\;
[PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
[PROCESSOR_ARCHITECTURE] => x86
[PROCESSOR_IDENTIFIER] => Intel64 Family 6 Model 15 Stepping 2, GenuineIntel
[PROCESSOR_LEVEL] => 6
[PROCESSOR_REVISION] => 0f02
[ProgramData] => C:\ProgramData
[ProgramFiles] => C:\Program Files (x86)
[ProgramFiles(x86)] => C:\Program Files (x86)
[ProgramW6432] => C:\Program Files
[PSModulePath] => C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules\
[PUBLIC] => C:\Users\Public
[SystemDrive] => C:
[SystemRoot] => C:\Windows
[TEMP] => C:\Windows\TEMP
[TMP] => C:\Windows\TEMP
[USERDOMAIN] => WORKGROUP
[USERNAME] => TKPD$
[USERPROFILE] => C:\Windows\system32\config\systemprofile
[VS110COMNTOOLS] => C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
[windir] => C:\Windows
[windows_tracing_flags] => 3
[windows_tracing_logfile] => C:\BVTBin\Tests\installpackage\csilogfile.log
[ORIG_PATH_INFO] => /test/index.php
[URL] => /test/index.php
[SERVER_SOFTWARE] => Microsoft-IIS/7.5
[SERVER_PROTOCOL] => HTTP/1.1
[SERVER_PORT_SECURE] => 0
[SERVER_PORT] => 80
[SERVER_NAME] => localhost
[SCRIPT_NAME] => /test/index.php
[SCRIPT_FILENAME] => d:\web\test\index.php
[REQUEST_URI] => /test/
[REQUEST_METHOD] => GET
[REMOTE_USER] =>
[REMOTE_PORT] => 4971
[REMOTE_HOST] => ::1
[REMOTE_ADDR] => ::1
[QUERY_STRING] =>
[PATH_TRANSLATED] => d:\web\test\index.php
[LOGON_USER] =>
[LOCAL_ADDR] => ::1
[INSTANCE_META_PATH] => /LM/W3SVC/1
[INSTANCE_NAME] => DEFAULT WEB SITE
[INSTANCE_ID] => 1
[HTTPS_SERVER_SUBJECT] =>
[HTTPS_SERVER_ISSUER] =>
[HTTPS_SECRETKEYSIZE] =>
[HTTPS_KEYSIZE] =>
[HTTPS] => off
[GATEWAY_INTERFACE] => CGI/1.1
[DOCUMENT_ROOT] => D:\web\localhost
[CONTENT_TYPE] =>
[CONTENT_LENGTH] => 0
[CERT_SUBJECT] =>
[CERT_SERIALNUMBER] =>
[CERT_ISSUER] =>
[CERT_FLAGS] =>
[CERT_COOKIE] =>
[AUTH_USER] =>
[AUTH_PASSWORD] =>
[AUTH_TYPE] =>
[APPL_PHYSICAL_PATH] => D:\web\localhost\
[APPL_MD_PATH] => /LM/W3SVC/1/ROOT
[IIS_UrlRewriteModule] => 7.1.0871.0
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36
[HTTP_HOST] => localhost
[HTTP_COOKIE] => SMFCookie880=a%3A4%3A%7Bi%3A0%3Bs%3A1%3A%221%22%3Bi%3A1%3Bs%3A40%3A%2245723634227528fca9ec4e427c18f96edcba93f2%22%3Bi%3A2%3Bi%3A1593752333%3Bi%3A3%3Bi%3A0%3B%7D; 3052e1f29bb035df6dc266db76d1ba87=494014415541+8515453145F11235952+55D614351+D+6161C12135615124E5740+643+81271+A515A5D+752+B54174E
[HTTP_ACCEPT_LANGUAGE] => th-TH,th;q=0.8,en;q=0.6
[HTTP_ACCEPT_ENCODING] => gzip, deflate, sdch
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
[HTTP_CONTENT_LENGTH] => 0
[HTTP_CONNECTION] => keep-alive
[FCGI_ROLE] => RESPONDER
[PHP_SELF] => /test/index.php
[REQUEST_TIME_FLOAT] => 1425266459.6854
[REQUEST_TIME] => 1425266459
)
|
ประวัติการแก้ไข 2015-03-02 10:23:56
|
|
|
|
Date :
2015-03-02 10:20:28 |
By :
Chaidhanan |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
เผื่อจะมีประโยชน์ครับ => Auto Write WWW
|
|
|
|
|
Date :
2015-03-02 10:29:14 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|