I am trying to write a script that generates a stylesheet for various platforms. Pretty basic I am sure.
The parser is hanging up on my preg_match function, however.
$agent = getenv("HTTP_USER_AGENT");
if (preg_match("/Win/i"),("$agent")) {
$style = "win"; }
else if (preg_match("/Linux/i"),("$agent")) {
$style = "linux";}
Any ideas why it spits out an error for the two lines that attempt to match the user agent variable?
Latest version of php and Apache on Win98 if that makes any difference.
Thanks
-phast