|
Posted by Eric on 12/23/05 01:19
Mark Parnell wrote:
> Deciding to do something for the good of humanity, Eric
> <nospam@email.com> spouted in alt.html:
>
>> This is what i dont get. Your telling me to generate the index.html page
>> using cgi?
>
> Yes.
>
>> but the cgi cant run till its in a page
>
> Why not? Just call it directly.
>
>> or if i use a cgi to generate index.html then
>> what page causes execution of the cgi in the first place?
>
> When you visit that address. *Instead* of going to index.html, you go to
> e.g. index.cgi. It works the same as any other server-side language.
> E.g. my site uses PHP - the main page is called index.php instead of
> index.html. The end user only sees the resulting HTML, but the HTML
> (along with any headers, cookies, etc.) is generated by PHP.
>
oh, ok, now i see what you mean. I'll write an index.cgi, make it the
default page in httpd.conf and let it set the cookie then it will also echo
out my original index.html
Thanks
Eric
[Back to original message]
|