mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline OP
Hoopy frood
OP Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Hello! I am new to sockets. I can contact my server and read off a text file having it overwrite a file in my script directory. Im wondering if there is a way I can automatically UPLOAD a html file to my server using mIRC. Thank You! laugh

Joined: Feb 2007
Posts: 1
T
Mostly harmless
Offline
Mostly harmless
T
Joined: Feb 2007
Posts: 1
bump I'm trying to figgure out a way to do the same thing but I want it to upload logs to the server so the channel owner who can't always be on can access the logs.

thx smile

Joined: Jan 2007
Posts: 259
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
You could do this in different ways.

Solution #1: PHP script or similar.
Have the script go to http://site.com/logs/upload.php, with POST data:
User: user
Password: password
Date: <date that was logged>
Log: logfile here
Then the PHP script adds it to a MySQL Database, or writes it to a file named <date>
Then you could either access the log by http://site.com/logs/log.php?date=date or by http://.../logfile.txt.

Solution #2: FTP
This is most likely the easiest one to implement.
Just have mIRC connect to the server via FTP, login etc, then upload the file through the FTP protocol. You would access the log though http://.../log.txt or whatever you named the log.

I would recommend the FTP way, as it causes the least server load, however it isn't as configurable as the PHP method.


Those who can, cannot. Those who cannot, can.

Link Copied to Clipboard