Jump to content

Remote Call & Send


hackalive

Recommended Posts

Hi guys,

I am after some code (PHP/AJAX/jQuery) that will let me send a command to a AJAX listener on another pc (or even eventually browser window), a bit like doing remote command/control.

 

I thought about how does IM services do it and after research found they are dependent on a file or a db, any way to not be dependent on those? Or do I need to be?

 

Furthermore if I do, anyone have a clean example (even a step by step tutorial) of an IM code with AJAX listener etc that I can use as an example and guide to modify into what I need?

 

All help is greatly appreciated.

 

Hope you all had a good NYE :)_

 

Cheers

Link to comment
https://forums.phpfreaks.com/topic/254159-remote-call-send/
Share on other sites

@thorpe,

Reflecting I can see that its not all that clear.

I'll lay it out step by step :)

 

================================

 

1. http://mydomain.com/ is open on PC1 and PC2

2. Same use (demo) has logged on on both PCs

3. PC1 and PC2 are allocated a "GUID" stored in $_COOKIE['guid'] and in DB. This GUID acts as the identifier of each device. You will see the purpose of this in a minute.

 

4. on PC1 I press a button "make PC2 blue"

When I do this it should send a command to the AJAX listner on PC2 from PC1.

The listner disects the command and then acts on it

 

The only part i need help on is making the listner and sending commands to it.

=================================

 

Does this make things clearer? or not?

Link to comment
https://forums.phpfreaks.com/topic/254159-remote-call-send/#findComment-1303017
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.