P
picayunish
Good day all,
I'm trying to make a php function so that the right stylesheet is loaded
for the browser.
What if have is a function for 2 different OS:
<?php if(!eregi('win',$_SERVER['HTTP_USER_AGENT'])){ ?>
<link href="mac.css" rel="stylesheet" type="text/css">
<?php } else { ?>
<link href="windows.css" rel="stylesheet" type="text/css">
<?php } ?>
url is http://www.evandervaart/test2.php
Can I use this function for different browsers?
Or is there another function?
I'm trying to make a php function so that the right stylesheet is loaded
for the browser.
What if have is a function for 2 different OS:
<?php if(!eregi('win',$_SERVER['HTTP_USER_AGENT'])){ ?>
<link href="mac.css" rel="stylesheet" type="text/css">
<?php } else { ?>
<link href="windows.css" rel="stylesheet" type="text/css">
<?php } ?>
url is http://www.evandervaart/test2.php
Can I use this function for different browsers?
Or is there another function?