Shoutbox

Communicating with an external site / PHP. - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Communicating with an external site / PHP. (/showthread.php?tid=85842)

Communicating with an external site / PHP. by citricsquid on 09-08-2008 at 04:01 PM

So I have an interesting idea on something I'd like to create. I'm not new to PHP, which means I can create the php side of it perfectly, I am however totally inexperience with javascript, which is what I believe plugins are programmed with, correct?

How would I go about communicating with PHP, if this is indeed possible? Let's say I have a file "http://website.com/msnplugin.php" and I want to send something via MSN to that page, using get.

So how would I set it up so when a user, in msn, typed something like "/something LOL" it would query http://website.com/msnplugin.php?something=LOL

Understand what I'm getting at? Is it possible? If so, how?


RE: Communicating with an external site / PHP. by John Anderton on 09-08-2008 at 04:09 PM

quote:
Originally posted by citricsquid
How would I go about communicating with PHP, if this is indeed possible? Let's say I have a file "http://website.com/msnplugin.php" and I want to send something via MSN to that page, using get.
You could try using XMLHttpRequest.open :)

code:
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET", urlhere, true)

RE: Communicating with an external site / PHP. by Volv on 09-08-2008 at 04:16 PM

[Tutorial] Communicating with web pages


RE: Communicating with an external site / PHP. by Matti on 09-08-2008 at 04:22 PM

quote:
Originally posted by John Anderton
You could try using XMLHttpRequest.open :)

code:
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET", urlhere, true)

But don't forget the xmlhttp.send()! Otherwise it won't do anything.
Besides, we have a very nice tutorial about all this here: [Tutorial] Communicating with web pages ;)

Bah, got beaten again. :P
RE: Communicating with an external site / PHP. by citricsquid on 09-08-2008 at 04:27 PM

Brilliant! Very helpful posts, thankyou. I like this place now, I'll stick around ;D


RE: Communicating with an external site / PHP. by John Anderton on 09-08-2008 at 04:41 PM

quote:
Originally posted by Mattike
But don't forget the xmlhttp.send()! Otherwise it won't do anything.
I just assumed that the MSDN article would lead him there :P Its on the sidebar thing in MSDN :P

And yeah, good tutorial :P
quote:
Originally posted by Mattike
Bah, got beaten again. :P
By like 2 years :P (well.. more like 6 minutes but who's counting 8-))