[thelist] if this then this in php
David Bindel
dbindel at austin.rr.com
Mon Jan 6 12:05:02 CST 2003
> Hi all. Having probs trying to serve Win IE5.0 an inline css
> id. All other browsers perform accepatbly, 5.0 is my only problem.
>
> <!--#if expr="$HTTP_USER_AGENT = /MSIE [45]/" -->
> <div id="one">
> <!--#elif expr="$HTTP_USER_AGENT = /Mozilla\/[56]/" -->
> <div id="two">
> <!--#else -->
> <div id="two">
> <!--#endif -->
>
> Something like the above only just for IE5.0 not 5.5, 6+ and
> in php. Can anyone offer some guidance? I've been having this
> problem for sometime now and tried in my php n00b way to fix
> it but no luck. Any help would be greatly appreciated
You can't use SSI and PHP in the same file. Sorry.
A better way to do it would be just figure out what browser it is using
PHP *instead of* SSI. I believe that PHP's $_SERVER['HTTP_USER_AGENT']
is the same thing as SSI's $HTTP_USER_AGENT, so try using it instead (in
your PHP script).
HTH,
David Bindel
More information about the thelist
mailing list