PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Roesen? on 12 December, 2003, 12:47:40

Title: Read txt message from web-server !!!
Post by: Roesen? on 12 December, 2003, 12:47:40
Hi,

I need a script that can read an txt message from a web-server...

Eg. When i type   "+network"   in main-chat on my hub,
it will read the text file   "http://funhub.lir.dk/text/network.txt"   !!!

Can some one help me with this script please :o)
Title:
Post by: plop on 13 December, 2003, 04:46:34
QuoteOriginally posted by Roesen?
Hi,

I need a script that can read an txt message from a web-server...

Eg. When i type   "+network"   in main-chat on my hub,
it will read the text file   "http://funhub.lir.dk/text/network.txt"   !!!

Can some one help me with this script please :o)
it's posible but a real bad idea.
every time some1 would trigger that command socks must be opened, connection build, text downloaded, socks closed, then shown.
better 2 use a file stored on the hub server, that can be shown much faster.

plop
Title:
Post by: pHaTTy on 13 December, 2003, 05:09:31
use !network to send the user a link to a webpage where they can see network list.....
Title:
Post by: Roesen? on 15 December, 2003, 16:24:26
Ok, thanks for your help "plop" and "(uk-kingdom)pH?tt?" :o)