News A server update was released on July 20. Server patch notes and downloads are here. Additionally, a client update was released on the same day. Client patch notes are here.
Sending/Getting * using PHP

zeus

  • Full Member
  • Asian Fighters : AC - Founder
  • Posts: 200
Sending/Getting * using PHP
«  »
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?

.

  • Hero Member
  • Posts: 1,766
Re: Sending/Getting * using PHP
« Reply #1,  »
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.
.

KAKAN

  • Wiki Contributor
  • Posts: 3,416
You can contact me at #SLC @ LUNet