Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-11-2002, 11:14 PM   PM User | #1
Chicano
New Coder

 
Join Date: Jun 2002
Location: Seattle, WA USA
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Chicano is an unknown quantity at this point
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-11-2002 at 11:30 PM..
Chicano is offline   Reply With Quote
Old 07-12-2002, 12:09 AM   PM User | #2
joh6nn
wei wu wei


 
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
joh6nn is an unknown quantity at this point
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.
joh6nn is offline   Reply With Quote
Old 07-12-2002, 01:06 AM   PM User | #3
Chicano
New Coder

 
Join Date: Jun 2002
Location: Seattle, WA USA
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Chicano is an unknown quantity at this point
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?
Chicano is offline   Reply With Quote
Old 07-12-2002, 02:42 AM   PM User | #4
firepages
Super Moderator


 
Join Date: May 2002
Location: Perth Australia
Posts: 3,890
Thanks: 5
Thanked 79 Times in 78 Posts
firepages will become famous soon enough
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)
firepages is offline   Reply With Quote
Old 07-12-2002, 06:01 AM   PM User | #5
oracleguy
Rockstar Coder


 
Join Date: Jun 2002
Location: USA
Posts: 9,043
Thanks: 1
Thanked 322 Times in 318 Posts
oracleguy is a jewel in the roughoracleguy is a jewel in the roughoracleguy is a jewel in the rough
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
oracleguy is offline   Reply With Quote
Old 07-12-2002, 09:41 AM   PM User | #6
Chicano
New Coder

 
Join Date: Jun 2002
Location: Seattle, WA USA
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Chicano is an unknown quantity at this point
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
Chicano is offline   Reply With Quote
Old 07-12-2002, 09:57 AM   PM User | #7
joh6nn
wei wu wei


 
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
joh6nn is an unknown quantity at this point
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.
joh6nn is offline   Reply With Quote
Old 07-12-2002, 10:08 AM   PM User | #8
Chicano
New Coder

 
Join Date: Jun 2002
Location: Seattle, WA USA
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Chicano is an unknown quantity at this point
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
Chicano is offline   Reply With Quote
Old 07-15-2002, 08:02 PM   PM User | #9
scroots
Senior Coder

 
Join Date: Jun 2002
Location: UK
Posts: 1,137
Thanks: 0
Thanked 0 Times in 0 Posts
scroots is an unknown quantity at this point
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
scroots is offline   Reply With Quote
Old 07-15-2002, 09:40 PM   PM User | #10
joh6nn
wei wu wei


 
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
joh6nn is an unknown quantity at this point
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.
joh6nn is offline   Reply With Quote
Old 07-15-2002, 09:44 PM   PM User | #11
scroots
Senior Coder

 
Join Date: Jun 2002
Location: UK
Posts: 1,137
Thanks: 0
Thanked 0 Times in 0 Posts
scroots is an unknown quantity at this point
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
scroots is offline   Reply With Quote
Old 07-16-2002, 01:18 AM   PM User | #12
Chicano
New Coder

 
Join Date: Jun 2002
Location: Seattle, WA USA
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Chicano is an unknown quantity at this point
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
Chicano is offline   Reply With Quote
Old 07-16-2002, 10:37 AM   PM User | #13
chrisvmarle
Regular Coder

 
Join Date: Jun 2002
Location: the Netherlands
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
chrisvmarle is an unknown quantity at this point
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
chrisvmarle is offline   Reply With Quote
Old 07-16-2002, 11:06 AM   PM User | #14
Chicano
New Coder

 
Join Date: Jun 2002
Location: Seattle, WA USA
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Chicano is an unknown quantity at this point
Kool! That sounds interesting... I'll go do a search on Yahoo and see what I can find...
Chicano is offline   Reply With Quote
Old 07-16-2002, 11:28 AM   PM User | #15
Chicano
New Coder

 
Join Date: Jun 2002
Location: Seattle, WA USA
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
Chicano is an unknown quantity at this point
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...
Chicano is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:25 AM.


Advertisement
Log in to turn off these ads.