On 16 Sep 98, at 22:47, [EMAIL PROTECTED] wrote:
> Thanks to Ivan, I now have cookies! That was the simplest explanation
> of the bunch, and I do like simplicity. One added line in the headers,
> and an extra environmental variable to check. Simplicity!
-- snip --
> Peter, I appreciate your comments about subroutines, but calling a
> subroutine for a one line function just isn't efficient. An awful lot of
> the functions I see in programs are one or two liners that are not
> available in other languages. Knowledge is more readily transportable
> across platforms, and the more knowledge you accumulate, the more chance
> some of it will distill into wisdom. But sometimes, I too use short
> subroutines. It just depends.
-- snip --
I think a useful subroutine could be a standarized way to pack in
the same cookie more than one value and then retrieve them
putting the values in the right variable (but most scripting language
are untyped) + some nice thing like generating an unique code to
recognize visitors... but this approach is valuable only if you have to
write more than 100 line. Programming books teach you that it's
very difficult to manage bunch of code longer than 35 lines. Of
course 35 could be my limit while your could be 50 but I think that
evryone has a limit so we need subroutine.
But I'm sure some very popular softwarehouse has a very short
limit :-) this tends to make the code very inefficent
and after all a real mess... A tipical example of "caos in order",
while evrybody is trying to find "order in caos"
> Ivan, you get the A+ on this one. Short, Sweet, and working in under
> a minute! (Ok, two. Took me that long to realize I needed to do a refresh
> before I saw it get back to the cgi to show up in the ENV var's.)
You're too good :-)
-------------------------------------------
Ivan Sergio Borgonovo [EMAIL PROTECTED]
Webmaster Gorilla Bookstore http://www.gorilla.it
Tel. +39 2 3311105/34530455 Fax. +39 2 34531591
Via Mac Mahon 9, Milano, Italy
-------------------------------------------
____________________________________________________________________
--------------------------------------------------------------------
Join The Web Consultants Association : Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------