JerryBarrett
Technical User
<!--#if expr = "${SERVER_SOFTWARE} = /Apache/" -->
<!--#exec cgi="./cgi-bin/testtags.pl"-->
<!--#else -->
<!--#exec cgi="/cgi-bin/testtags.pl"-->
<!--#endif -->
Wullie kindly suggested this in my HTML to load up a set of tags according to the url of the site - cool it worked a treat until IIS6 (Just upgraded due to a disk crash - now gone RAID1 with Win2K3)
Now it executes twice ignoring the if-then-else and of course creating an error when it cant find the file in the first path - becuase its a Unix path, the second is the one I would expect to be run on Windows IIS and in fact it does run the script quite well.
So why does it ignore the if-then-else and try and exec both commands? - This is so frustrating to test.
Regards
Jerry
<!--#exec cgi="./cgi-bin/testtags.pl"-->
<!--#else -->
<!--#exec cgi="/cgi-bin/testtags.pl"-->
<!--#endif -->
Wullie kindly suggested this in my HTML to load up a set of tags according to the url of the site - cool it worked a treat until IIS6 (Just upgraded due to a disk crash - now gone RAID1 with Win2K3)
Now it executes twice ignoring the if-then-else and of course creating an error when it cant find the file in the first path - becuase its a Unix path, the second is the one I would expect to be run on Windows IIS and in fact it does run the script quite well.
So why does it ignore the if-then-else and try and exec both commands? - This is so frustrating to test.
Regards
Jerry