Socks
Moderator: General Moderators
Socks
hi there, i'm not new in PHP but i never worked with socks..
is some ome here can teach me use socks?
thanks in advance =]
is some ome here can teach me use socks?
thanks in advance =]
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
I'm going to guess you're referring to sockets?
fsockopen() has a lot of useful information and examples on working with sockets. Although complex, the SHA256 Code Snippet here tries to use fsockopen() when the url wrappers are offline to request a remote file. That may help with a working example as well.
fsockopen() has a lot of useful information and examples on working with sockets. Although complex, the SHA256 Code Snippet here tries to use fsockopen() when the url wrappers are offline to request a remote file. That may help with a working example as well.
The only thing you can do with sockets is read/write from them. Just as you would read from a file(stream) or whatever...
So you have to lookup the protocol/language you want to talk to a server.. For example, if you wan to recieve a file from a webserver, you would have to talk HTTP and you would probably say something like:
Or if you were talking to a telnet server:
So you have to lookup the protocol/language you want to talk to a server.. For example, if you wan to recieve a file from a webserver, you would have to talk HTTP and you would probably say something like:
Code: Select all
GET / HTTP/1.1
Host: timvw.madoka.beCode: Select all
user john
pass doe
echo bar- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
you may find several libraries for those on phpclasses.org, failing that (and google), you'll need to figure out which API's the services support to write a connection to each. It can be quite complicated, so getting to specifics would help.
I'm pretty sure I saw an ICQ connector on phpclasses......
http://www.google.com/search?q=ICQ+site ... lasses.org
http://www.google.com/search?q=radio+si ... lasses.org
I'm pretty sure I saw an ICQ connector on phpclasses......
http://www.google.com/search?q=ICQ+site ... lasses.org
http://www.google.com/search?q=radio+si ... lasses.org