Vice City: Multiplayer

VC:MP Discussion => General Discussion => Topic started by: ! on Aug 04, 2017, 01:13 PM

Title: Sending/Getting * using PHP
Post by: ! on Aug 04, 2017, 01:13 PM
Is it possible to send somthing i.e. command from PHP to vcmp server or get somthing from vcmp server through PHP?
If yes what would be the procedure?
Title: Re: Sending/Getting * using PHP
Post by: . on Aug 04, 2017, 01:45 PM
sockets. meaning TCP, UDP and most preferably Unix sockets. or if you want supper fast something implementing IPC. but dunno how you're gonna make IPC available in PHP. then, to make things more simple, implement RPC on both ends. However, implementing RPC in PHP is going to be an issue since PHP is stateless. The most you can do is expose an API and do HTTP requests on that API. Either that or resort to CLI and run PHP scripts directly via the system() function.

Either way. All of it is possible. But the possibility of you implementing it is not very likely. No disrespect. Just a factual opinion.
Title: Re: Sending/Getting * using PHP
Post by: KAKAN on Aug 04, 2017, 02:22 PM
http://forum.vc-mp.org/?topic=3953.0 for an already available script :)