any script that retrieves the weather from weather.yahoo.com ?
(for example when I type /weather beirut, lebanon )
I will parse the html, I just want the way to post via sockets..
Thanks
The only way I can think of is using $read, and $mid...
Information read from a website is done on a line by line basis, with each line ending in a CRLF code. A line might also be terminated early if the line is longer than what a variable will hold...approximtely 900 characters.
Once you have read a line into a variable (via $sockread), then you can work with it as you wish.
I haven't done much with sockets, myself, but if you will clarify just what it is you're wanting, I'll be happy to assist in any way I can.
If you're wondering how you send information to the site, that is done using /sockwrite.
General help on sockets available via /help sockets