Assuming you know the FTP info (username/password) how can you access and write to a text file on your server??
Printable View
Assuming you know the FTP info (username/password) how can you access and write to a text file on your server??
technicaly you should be able to! in fact you could even if you didn't have a user/password, they call it hacking!
select like:view file, or something... write, then save changes -> ur done....yes
I ment from a dos exe ..
not from an actual ftp program. geese.
This can be done, but probably not the way you're thinking. You write a cgi program that does whatever you want it to and then it writes to a text file on the server. That program could also take the data and turn it into a web page if you so wished. But if you want a program on your hard drive to do this then you're pretty much out of luck unless you know how to program with sockets.
-Prelude
If your thinking you can just connect and then use fopen() and all that stuff, hackers would have already taken over the world by now...Quote:
Originally posted by dbgt goten
I ment from a dos exe ..
not from an actual ftp program. geese.
I dont want to connect and use fopen.. I want to ftp to my web site and write to files. I know the routines to do it with windows, but i NEED to do it with dos, for my dos game. I really didnt want to port to directx but looks like ill have to.
then use sockets, sockets arent just for windows you know. Try using fcntl.Quote:
Originally posted by dbgt goten
I dont want to connect and use fopen.. I want to ftp to my web site and write to files. I know the routines to do it with windows, but i NEED to do it with dos, for my dos game. I really didnt want to port to directx but looks like ill have to.