AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   [php] best way for get srcds server name (https://forums.alliedmods.net/showthread.php?t=314313)

Dr.Mohammad 02-13-2019 03:39

[php] best way for get srcds server name
 
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

detc 02-14-2019 10:08

Re: [php] best way for get srcds server name
 
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


All times are GMT -4. The time now is 16:52.

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