in reply to Ideas on how to redirect users to a specific index

You problem seems to be, how to write a single cgi script, that can be used to show directories, files, individual info, for lots of different users ? This is a Perl script, I'm assuming since you're asking here.

My answer to that would be, use a database, use CGI params, use rewrite as eric suggested. It just needs to LOOK like they're in their own folders, right? Or is there some physical need to actually be there? One centralized script can read the individual settings/messages from a database, according to the logged in user, and output the appropriate HTML. (Thats how PerlMonks works, essentially). Heck, I have a script that pretends its an entire web server, every single request for any page at all just goes through one script.

You may want to symlink the script into each of the user directories, if thats easier than rewriting URLs.. (No idea, not much of a cgi buff myself.)

C.

  • Comment on Re: Ideas on how to redirect users to a specific index

Replies are listed 'Best First'.
Re^2: Ideas on how to redirect users to a specific index
by Anonymous Monk on Oct 13, 2004 at 05:32 UTC
    Actually I had the idea of using url_params already. The admin already uses this ability to go between functions but I like to keep these clean. Clean as in, no more than one step deep. ie www.page.com/cgi-bin/script.pl?function=add or www.page.com/cgi-bin/script.pl?function=edit. I don't like going deeper into things like www.page.com/cgi-bin/script.pl?function=add&user=bob&page=7 .

    I could write it to do that, but it gets difficult writing to screen just information needed when using so many params at one time and keeping them organized.