Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    Seattle, WA USA
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Customize FTP Site?

    Hi. I wanted to know if there are any 'tricks' that you can apply to an FTP site (your own). Such as, is it possible to change the background color / link color / etc on the FTP page that you would view in a browser? (Unless you are viewing the FTP site with a new Windows that displays it with folders that is...) Maybe like have a page that went
    ----------------------------
    <html>
    <head>
    <title>My FTP Site!</title>
    <style>
    body {background:#555555;color: orange}
    a {color:lime;text-decoration:none}
    a:hover {color:red;text-decoration:underline}
    </head>
    <body>
    <!-- Some kind of SSI tag to Include the FTP directory listing and stuff -->
    </body>
    </html>
    -----------------------------
    Anyway, that is what I mean.

    And I heared somewhere about a index.txt thingy... what does it do? And... Would it be possible to create you very own FTP interface? Completly different from the one that comes with your browser? (I am talking about browser FTP stuff... not client stuff using CuteFTP or WS_FTP or similar programs)... Anyway, any FTP 'tricks' would be awesome to know.

    Thanks a lot!

    Ian
    Last edited by Chicano; 07-12-2002 at 12:30 AM.

  • #2
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    i'm not sure, but you might want to try looking at the JavaScript Kit's .htaccess tutorial. this is the page that'd be of particular interest to you ( the last paragraph ), but you should probably read the whole tutorial.

    http://www.javascriptkit.com/howto/htaccess11.shtml
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #3
    New Coder
    Join Date
    Jun 2002
    Location
    Seattle, WA USA
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Poo...

    Well, it didnt work unfortunatly... I thought it might, but I imagine since .htaccess is a unix thing, and an HTTP server thing (I think it is only an http server thing), then probably since my server is FTP, and on Windows, it didnt work...

    Well, thanks for your try =)
    Does anyone else have any ideas?

  • #4
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,108
    Thanks
    11
    Thanked 101 Times in 99 Posts
    Hi, you are really getting into the realms of server-side if you want to achieve this, i.e. its pretty straightforward in most serverside languages to produce a listing of the contents of a directory which you can display on your normal HTML page in anyway you wish.

    I think the one exception is SSI so you gotta look at PHP,ASP,PERL,CFM,JSP/etc
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #5
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    firepage is absolutly correct. You'd have to make something similar to the geocities file manager. Which isn't impossible it might take a while but it can be done. I know a friend that did it. It took him about 4,000 lines of ASP code total but it turned out great. And he added some new features to it too.
    OracleGuy

  • #6
    New Coder
    Join Date
    Jun 2002
    Location
    Seattle, WA USA
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Thanks for your replies =)

    Well, I myself would not be able to do this with my current knoledge... and also, is it possible to do this in an FTP server? because I know you can display the contents of a folder in an HTTP server like this (seen it done, like you said for example on the Geocities File Manager) but... on an FTP server?

    It would be awesome, if I could only find maybe a premade script... hmmmph.

    Maybe it could be done using an HTTP server, which displayed the directory structure of the FTP server's folders (in other words, calling the info of the directory FROM the FTP, and "pasting" it into the webpage on your HTTP server...)

    Well, anymore ideas would be awesome.. or if anyone knows of a script that could do something like this, well, that would be just as awesome =)

    Thanks again,
    Ian

  • #7
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    i'd say you should write your SysAdmin, and ask if there's a way to do it with .htaccess files, or whatever the equivalent for an FTP server might be. i'm guessing it would still be .htaccess, but anything that isn't covered in that tutorial i showed you, is out of my league. your SysAdmin should know, though.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #8
    New Coder
    Join Date
    Jun 2002
    Location
    Seattle, WA USA
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    heheheh

    The thing is, that I am currently hosting my FTP server and HTTP server on my own home computer... So I don't really have a SysAdmin

  • #9
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i have a cunning possibley server side plan, if you wrote something to list files in an ftpsite and got it to update itself and call its self index.html would wjem tjey opend the site they would get the list. I now you can list files on a server.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished

  • #10
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    i don't know. can ftp servers run cgi scripts? never heard of that. it'd be interesting to find out, though.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #11
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i`ll experiment and try my idea.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished

  • #12
    New Coder
    Join Date
    Jun 2002
    Location
    Seattle, WA USA
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hmmm...

    No, I don't believe FTP servers can run CGI... they can run common .html files, but not process .pl or .cgi files that I am aware of.
    Maybe if you were to install a perl package or something on the FTP server, so that it can find Perl or something?
    I dunno... but it is worth a try I guess

  • #13
    Regular Coder
    Join Date
    Jun 2002
    Location
    the Netherlands
    Posts
    215
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not sure, but I remember something about .ftpaccess (or .ftacces). I've read it somewhere, but I don't know where. Perhaps try searching for it with some searchpage.

    Mzzl, Chris

  • #14
    New Coder
    Join Date
    Jun 2002
    Location
    Seattle, WA USA
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Kool! That sounds interesting... I'll go do a search on Yahoo and see what I can find...

  • #15
    New Coder
    Join Date
    Jun 2002
    Location
    Seattle, WA USA
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well... I found some stuff... but it is a bit confusing for me at least .

    Want to check it out?

    http://www.wu-ftpd.org/man/ftpaccess.html
    http://www.geocrawler.com/archives/3...0/3/0/3523807/
    http://proftpd.linux.co.uk/ (Click on Documentation, then search the page for ftpaccess

    anway...


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •