Helpful Information
 
 
Category: Other server side languages / issues
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 :thumbsup:

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

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? :p

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

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.

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

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.

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 ;)

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

i don't know. can ftp servers run cgi scripts? never heard of that. it'd be interesting to find out, though.

i`ll experiment and try my idea.

scroots

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 :rolleyes:

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

Kool! That sounds interesting... I'll go do a search on Yahoo and see what I can find...

Well... I found some stuff... but it is a bit confusing for me at least :confused: .

Want to check it out?

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

anway... :confused: :confused: :confused:

i`m sure i could bodge and codge some code together

all you would need is a list function and a bit of js. i`m gona try it.

scroots










privacy (GDPR)