Search found 6 matches

by paulfynch
Fri Nov 18, 2005 5:29 pm
Forum: PHP - Code
Topic: PHP multiple sockets
Replies: 7
Views: 665

Update

-bump-

So, does anyone have an idea how to initate a listener socket and an outgoing connection in the same routine?

Thanks
pf
by paulfynch
Fri Nov 18, 2005 9:49 am
Forum: PHP - Code
Topic: PHP multiple sockets
Replies: 7
Views: 665

Update

Thanks for the responses, every little bit helps... I keep wondering if I'm trying to do something unorthodox here... I found an interesting article by Wez Furlong , a php core programmer that kinda talks about what I want to do. I am starting to understand the blocking/non-blocking issue, but still...
by paulfynch
Thu Nov 17, 2005 5:10 pm
Forum: PHP - Code
Topic: Changing a flash for a picture
Replies: 20
Views: 1349

Simpler answer

...for a Mambo site (which it looks like you are using)

Code: Select all

<? if($_SERVER['QUERY_STRING']!=""){echo "<object (flash stuff)......>"; } else {echo "<img (picture stuff)>";}?>
Cheers!
pf
by paulfynch
Thu Nov 17, 2005 3:55 pm
Forum: PHP - Code
Topic: PHP multiple sockets
Replies: 7
Views: 665

socket_select

Hey, thanks for the reply Weirdan, I'm looking into it right now, thanks for the suggestion. Now, can socket_select manage the MSN class socket *he* creates with fsockopen and the one I create with socket_create ? (Is that a dumb question?) Man, my head is swirlin with all this socket stuff... I thi...
by paulfynch
Thu Nov 17, 2005 3:48 pm
Forum: PHP - Code
Topic: PHP multiple sockets
Replies: 7
Views: 665

Update

Hey all, I don't know what key combo I hit, but my browser took off, and I have to rewrite this post :\ oh well Okay, update Here is the original part of his function that maintains a connection with the MSN switchboard( function rx_data ) while (! feof($this->fp)) { $data = $this->_get(); if ($data...
by paulfynch
Thu Nov 17, 2005 1:46 pm
Forum: PHP - Code
Topic: PHP multiple sockets
Replies: 7
Views: 665

PHP multiple sockets

Hey all, first time here, good forum. Okay... I want to basically ask you guys if this is "doable". I'm sure it is. but I'm lost. I have a class from flumpcakes.co.uk called MSN Messenger Class. Basically this connects to the MSN notification server, then the switchboard to handle messages...