Thread: Tough question! How to read/write a file on a website!

  1. #1
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704

    Tough question! How to read/write a file on a website!

    Assuming you know the FTP info (username/password) how can you access and write to a text file on your server??
    c++->visualc++->directx->opengl->c++;
    (it should be realized my posts are all in a light hearted manner. And should not be taken offense to.)

  2. #2
    monotonously living Dissata's Avatar
    Join Date
    Aug 2001
    Posts
    341
    technicaly you should be able to! in fact you could even if you didn't have a user/password, they call it hacking!
    if a contradiction was contradicted would that contradition contradict the origional crontradiction?

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    21
    select like:view file, or something... write, then save changes -> ur done....yes

  4. #4
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704
    I ment from a dos exe ..
    not from an actual ftp program. geese.
    c++->visualc++->directx->opengl->c++;
    (it should be realized my posts are all in a light hearted manner. And should not be taken offense to.)

  5. #5
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    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
    My best code is written with the delete key.

  6. #6
    King of the Internet Fahrenheit's Avatar
    Join Date
    Oct 2001
    Posts
    128
    Originally posted by dbgt goten
    I ment from a dos exe ..
    not from an actual ftp program. geese.
    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...

  7. #7
    mov.w #$1337,D0 Jeremy G's Avatar
    Join Date
    Nov 2001
    Posts
    704

    no..

    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.
    c++->visualc++->directx->opengl->c++;
    (it should be realized my posts are all in a light hearted manner. And should not be taken offense to.)

  8. #8
    King of the Internet Fahrenheit's Avatar
    Join Date
    Oct 2001
    Posts
    128

    Re: no..

    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.
    then use sockets, sockets arent just for windows you know. Try using fcntl.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  2. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  3. Simple File encryption
    By caroundw5h in forum C Programming
    Replies: 2
    Last Post: 10-13-2004, 10:51 PM
  4. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM