Raised This Month: $32 Target: $400
 8% 

[php] best way for get srcds server name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
Old 02-13-2019 , 03:39   [php] best way for get srcds server name
Reply With Quote #1

hi guys!
how i can get server name for web Page??

may this?
must i use function?

https://github.com/xPaw/PHP-Source-Query

please help me!!
thank you

Last edited by Dr.Mohammad; 02-13-2019 at 03:48.
Dr.Mohammad is offline
detc
Junior Member
Join Date: May 2016
Old 02-14-2019 , 10:08   Re: [php] best way for get srcds server name
Reply With Quote #2

Take a look at the example provided here. You can get the hostname using GetInfo(), which returns an array. Looking at the source, the second element in that array should be the server hostname.

https://github.com/xPaw/PHP-Source-Q...mples/View.php
detc is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode