PDA

Click to See Complete Forum and Search --> : chat program that will update and display a html file located on my domian's server..


Daniel_Christie
Nov 3rd, 2000, 10:23 AM
I want to code using my, VB5 Enterprise edition, and make a chat program that will update and display a html file located on my domian's server.

Does anyone have any source for this or atleast lead me in the right directions?
(I haven't any knowlege with this but I learn fast and I am very, very eager.)

Dim
Nov 3rd, 2000, 10:53 AM
Well what you would have to do is download the html file, edit it and upload it back to the webserver. Here is what it should look like:

With Inet1
.Cancel
.Protocol = icFTP
.url = "123.123.123.123" 'ftp ip
.UserName = "me" 'username
.Password = "xxxx" 'password
End With
'load the specifi page to the textbox/edit it
Text1.Text = Inet1.OpenURL("http://www.mysite.com/mypage.html", icString)
Open "C:\htmldoc.html" For OutPut AS #1
Print #1, Text1.Text
Close #1
'upload a file
Inet1.Execute , "PUT C:\htmldoc.html.txt htmldoc.html"
Inet1.Close


Gl,
D!m

Daniel_Christie
Nov 3rd, 2000, 10:58 AM
Is this a fairly slow process? (granted there are connection variables) but the general process, would you say it is a extremely slow process?

Dim
Nov 3rd, 2000, 02:44 PM
Well yeah it could take some time...the proximate time would depend on the server connectio and size of the html file. But other than that it should be fine.

D!m