Hello Puneet.

Slightly off topic but useful for making templating easy and not looking like a cgi.

Puneet said:
>In effect, the users are not going to index.cgi?do=somecrap, but they are 
>going to /website/somecrap. So you can use path_info, but how are you 
>getting the cgi to fire up?

Its easy if you have control over your server.
make a soft link to your cgi directory and call it something related to your app

/cgi-bin/information.cgi?do=parameters

becomes

/mortgage/information/parameters

This doesn't work for all servers.
I have a shared one that won't let me do that, so I had to have an extension.
but you can do this differently by making up a new filename extension and making it
act like a cgi

In this case, Mortgage_Rate.html is a parameter, not a file, but it looks like a file.
http://marketside.com/mortgage/mortgage.cgi/Mortgage_Rate.html

On another server that I control, I can change mortgage.cgi to just mortgage.
On this one I could have made the extension .info act like a cgi and then I could have 
used
http://marketside.com/mortgage/mortgage.info/Mortgage_Rate.html

- but by the time I realised that, it was in all the search engines.

And this makes it easy to use Templates but not make it too obvious.


Alan.





-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to