PHP Connect to Unity Server and send an RPC

Hey everyone! I would like to be able to call a function on a unity server by connecting to it with PHP and submitting some information. The information is purely text (and may be as simple as a short number), however it's the initial connection i'm a little stumped with! An example of what I'm trying to do would be loading a certain webpage might for instance generate an object ingame in a certain position on clients via the server.

I'm certain that this kind of thing is possible in PHP, just I don't know what to connect to in unity to send through an RPC. Any help would be really appreciated - thanks! All the best, Luke Briggs

Never mind - I've figured out how to do it.

Thanks anyway :)

Probably a little late for some, but better late rather than never I suppose!

I solved this one by implementing my own server → client system (by making a server in C#) that the clients (both game using C# System.Net.Sockets and PHP through fsockopen) can then connect to. This made lots of other interesting things possible, so if you can make your own server then I would certainly reccommend it :slight_smile: