mr0ldie Posted August 13, 2008 Share Posted August 13, 2008 I read not to ask "If PHP can do it" but rather "How should I go about it," so here goes. In short, I want to create a webpage where a user can input an IP:Port and then open a socket on the USER's end to connect to it and send/receive data. Is that poss--er, how do you go about something like that with PHP? (I'm very new to PHP, but willing 'n able to learn.) Link to comment https://forums.phpfreaks.com/topic/119432-how-to-go-about-client-side-sockets/ Share on other sites More sharing options...
ratcateme Posted August 13, 2008 Share Posted August 13, 2008 so you want to open a socket to a server then the user talks to the socket through a web page? that is not possiable. you can open the connection but you cant get info from the user without closing the script. and closing the socket connection Scott. Link to comment https://forums.phpfreaks.com/topic/119432-how-to-go-about-client-side-sockets/#findComment-615257 Share on other sites More sharing options...
mr0ldie Posted August 13, 2008 Author Share Posted August 13, 2008 No, I want the user to be able to go to my webpage and my webpage open a socket FOR him (on his end) to the info he specifies (which will actually be a game server). It'll be remotely getting logs from game servers for people. That isn't possible? Link to comment https://forums.phpfreaks.com/topic/119432-how-to-go-about-client-side-sockets/#findComment-615543 Share on other sites More sharing options...
DarkWater Posted August 13, 2008 Share Posted August 13, 2008 No, PHP is on the server. It's not at all possible to execute something on the client's computer. That would be horridly insecure. Look into C++ for this. Link to comment https://forums.phpfreaks.com/topic/119432-how-to-go-about-client-side-sockets/#findComment-615550 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.