...

View Full Version : Customize FTP Site?



Chicano
07-12-2002, 12:14 AM
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:

joh6nn
07-12-2002, 01:09 AM
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

Chicano
07-12-2002, 02:06 AM
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

firepages
07-12-2002, 03:42 AM
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

oracleguy
07-12-2002, 07:01 AM
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.

Chicano
07-12-2002, 10:41 AM
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

joh6nn
07-12-2002, 10:57 AM
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.

Chicano
07-12-2002, 11:08 AM
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 ;)

scroots
07-15-2002, 09:02 PM
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

joh6nn
07-15-2002, 10:40 PM
i don't know. can ftp servers run cgi scripts? never heard of that. it'd be interesting to find out, though.

scroots
07-15-2002, 10:44 PM
i`ll experiment and try my idea.

scroots

Chicano
07-16-2002, 02:18 AM
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:

chrisvmarle
07-16-2002, 11:37 AM
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

Chicano
07-16-2002, 12:06 PM
Kool! That sounds interesting... I'll go do a search on Yahoo and see what I can find...

Chicano
07-16-2002, 12:28 PM
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:

scroots
07-29-2002, 08:36 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum