is it posable to use php to communicate with scratch?
if so how do you i have tryed some socket stuf but i ant good at that sort of stuff.
Offline
Hmm... don't take my word for it, but I think it's remotely possible...
Not directly using PHP of course, because the language doesn't support ports and sockets. And it goes without saying that the PHP has to be running on your server, or a server that is configured to allow PHP to access other programs on the disk and get/send values from/to it.
However, if you set up PHP to communicate with a Python or C program (or any other language that can use the socket), you could theoretically then have a page that allows GET parameters to access Scratch!
Wonderful but extremely hard if you ask me
Offline
PHP supports sockets, so yes.
Offline
You can run PHP standalone (without a web server); and it appears to support sockets, as bobbybee points out.
If you're trying to run a Mesh server off PHP hosting; bear in mind this probably isn't possible, as you can't usually have long running processes. Running it standalone on your computer or a VPS should be fine; I don't know how tricky it is to set up.
You'll need to implement the Remote Sensors Protocol yourself. Try having a look at some of the example programs, for example the Python one, and seeing if you can port the code to PHP. Ask here if you get stuck
Offline