I'm trying to get some ASP code that currently runs on IIS to runs on
apache as well.  Turns out it's almost a no brainer which means a job
well done for the apache asp team.  However, I have bumped into an issue
around the $Request->ServerVariables() in that it would appear a lot of
the 'standard' ones are not supported.  Rather than try to walk though
each manually I would have at least thought that ALL_HTTP would have
been available to me but it's not.  QUERY_STRING certainly works but I
can't find many others that do.

As a nit, it took me some time to figure out I had to explicity 'my' all
my variables if I didn't want them to retain their values between
calls.  It  was also puzzling to find a varible lose its value after
some unclear amount of time.  I spent a fair amount of time trying to
figure out how to cause a variable to regain it's 'undef' state by
playing with various timers, session saving parameters, etc. all with no
luck until I stumbled on using 'my' at the start of my asp script for
each variable.  I know 'strict' and/or other better coding practices
would have saved me the grief.  However, there may also be some value in
putting something into the FAQ or other location. One might word such as
FAQ as

"Why do my script variables retain their previous settings when a script
is run multiple times in a row and lose them if I wait 10-15 seconds or
so, as can be observed in the following script:

<HTML>
<BODY>
$counter++;
$Response->write("<BR>Counter: $counter");
</BODY>
<?HTML>

-mark



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to