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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.