Re: Sockets and webservers
Yeah, get the server uptime, then save it to sql, then make a simple .php script to get it on webpage.
|
Re: Sockets and webservers
Of course.
You can find a way to get the uptime here: http://forums.alliedmods.net/showthr...ghlight=uptime and you can create a webserver with: http://forums.alliedmods.net/showthread.php?t=63512 ( check sample 1 ) |
Re: Sockets and webservers
My clan runs this on all their servers
Code:
#include <amxmodx> |
Re: Sockets and webservers
Great Tutorial :D ! But how to use sockets with an IRC-Bot ???
|
Re: Sockets and webservers
hallo,
i try to compile the example but i'm getting alot of errors: Quote:
Code:
#include <amxmodx> |
Re: Sockets and webservers
download it locally and not with the webcompiler
|
Re: Sockets and webservers
it's not the web compiler, it's the "else" in connect_web() having its closing bracket missing.
EDIT: oh, and the closing bracket for if (socket_change(g_sckweb, 100)) is missing also. and an include for <amxmodx> before the <sockets> include is needed as well. let me just post the code that compiles: Code:
|
Re: Sockets and webservers
One question about the first sockets sample.
Why don't we need to call socket_close ? |
Re: Sockets and webservers
Can someone please give a working example about how to retrive some data from a .php file using sockets?
|
Re: Sockets and webservers
|
All times are GMT -4. The time now is 14:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.