I know it's supposed to look something like this...
...plus I have to refer to the useragent.$gecko = preg_match('/rv[: ]?([0-9a-z.+]+)/i');
I'd like to set the useragent to this variable...
...and then detect the gecko version and set it to $gecko variable.$useragent = getenv("HTTP_USER_AGENT");
Pre-built scripts come with no competent manuals and require more hard core PHP know how and this solution is truly all I need right now.
That way I can use greater or less then operators to serve patched code for older versions of Gecko using less then math operators. If Gecko is less then 1.8...
Johnif ($gecko<1.8) {echo 'Gecko is less then 1.8, send certain code here.';}