Realtime FTP Uploading

Discussion in 'Web Design & Coding' started by Sambassador, Apr 22, 2007.

  1. Sambassador

    Sambassador Ninja

    Joined:
    Nov 21, 2005
    Messages:
    64
    Likes Received:
    1
    Location:
    Colorado
    Hey all,

    Just wondering... are there any programs that automatically upload and replace a file when you save a file on your computer?

    For example, say i have a file called index.html. I want it to upload to my web server every time i save it on my computer (thus editing it on the server). So I click "save" in my html editor, and then my FTP program uploads it and replaces the server version.

    Any programs that do that?

    -Sam
     
    Sambassador, Apr 22, 2007
    #1
    1. Advertisements

  2. Sambassador

    Crimson Devil's Advocate VIP Member

    Joined:
    Aug 21, 2006
    Messages:
    479
    Likes Received:
    3
    Location:
    Norfolk, VA
    You can make a batch file that does this. Just open your text editor (notepad, vi, etc) and put something like this in it.

    FTP xx.xx.xx.xx
    USER MyUserId
    MyPassword
    cd xx/xx
    binary
    prompt n
    put index.html


    Just change the following: xx.xx.xx.xx to the IP or the name of the FTP server, MyUserId with the login name, MyPassword to your password and xx/xx to the place where you want the file to go to. Then save the file as a *.bat and you're done. Note: I haven't had to do unattended jobs for awhile so this batch may need to be tweaked to work right.

    The only difference will be you have to click the batch file to upload the updated document. You can also create a script or find one, but it will pretty much do the same thing.

    You can also invest in Fileaze for $30 which gives you a nice GUI to set automated jobs like this. It's probably better because you don't have a user name and password where anyone can access it and you'll be able to tweak the automation better instead of using some of the "clunk and run" issues of using automated command line scripting.
     
    Last edited: Apr 22, 2007
    Crimson, Apr 22, 2007
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.