PHP Classes

San Andreas - Multiplayer Server Query: Query information from a SA-MP game server

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-05-20 (9 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 514 This week: 1All time: 5,348 This week: 1,128Up
Version License Categories  
san-andreas-mp-query 1.0Free for non-comm...Games
Description Author  

This is a simple class that can query San Andreas: Multiplayer game servers to retrieve publicly available information.

The class returns an array that contains the information provided by the server: host name, mods, version, players, pings, etc..

Picture of Bogdan Zarchievici
Name: Bogdan Zarchievici <contact>
Classes: 6 packages by
Country: Romania Romania
Age: 31
All time rank: 2175 in Romania Romania
Week rank: 277 Down3 in Romania Romania Up


Written by: Bogdan Zarchievici <>
Version: 1.0.0.a
Revision: Friday, May 19, 2006 at 9:24:43 PM

Comments: works with any PHP version greater than 4.1.0.

Special thanks to: Alexandru Burdulea and all of you who have been actively interested in the development of this class.

For more details on SA-MP please visit:



Call the PHP class:

	$class=&new san_andreas(IP,PORT);

Getting the status of the San Andreas: Multiplayer server:


You must complete the 1st and 2nd parameter of the status function with the IP and PORT of the San Andreas: Multiplayer server you want to query.

There is currently only 1 variable that you can easily change:
TIMEOUT = I recommend leaving it to 10 (ten) seconds. However you can increase or decrease it as you like.



Please use the following e-mail address in case you find any bugs. Also, feel free to contact me if you need any help setting up this class.
If you use this class in your PHP project or on your website, please drop me a message and tell me the link to your website so I can put it on my website.

opensource [at]
  Files folder image Files  
File Role Description
Files folder imagetemplates (2 files)
Accessible without login Plain text file index.php Example Example
Accessible without login Plain text file readme.txt Doc. Readme
Plain text file san-andreas-class.php Class Class
Accessible without login Plain text file san-andreas-layout.php Aux. Layout for the example

  Files folder image Files  /  templates  
File Role Description
  Accessible without login Plain text file classic.php Aux. Classic Template
  Accessible without login Plain text file raw.php Aux. Raw Template

 Version Control Unique User Downloads Download Rankings  
 0%Total:514All time:5,348
 This week:1This week:1,128Up