The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
I currently use PHP quite extensively on my site so want to use PHP for this exercise as well. I have downloaded a file 'php_browscap.ini' and am trying to use this file in conjunction with PHP's 'get_browser()' function but apparently the PHP.ini file needs to point to the 'php_browscap.ini' file that I have uploaded to my htdocs folder. Obviously I can'y alter PHP.ini but is there a way I can somehow add htdocs/'php_browscap.ini' to the path that will allow 'get_browser()' to find it.
Or is there an easier and more accepted way of detecting a users browser?
Any assistance here would be much appreciated, many thanks.
Obviously don't believe everything (anything!) you hear on a sales call - especially if it's a cold call one :¬)
As you use an InstantPro site I'm afraid you won't be able to use the example I provided earlier.
Where did you read "Google SEO likes a site to have a mobile version" ? I've just had a quick skim read of Google's Webmaster Guidelines and didn't see any mention.
[s]Hmmm...[/s]
My Freeola InstantPro Site ...and thanks for posting back as lots of people seem to disappear into the ether...
[s]Hmmm...[/s]
This isn't something I've had to do so far but thought it sounded worth investigating for the future...
Looking around there are numerous different ways to do this - but as you are using PHP I looked for a PHP solution to play with.
I've setup a demo page here:
www.hmmm.ip3.co.uk/mobile-test
If you are on a mobile device I redirect you to the BBC news mobile website, if you aren't on a mobile I don't redirect.
I'm using this PHP Mobile Detect script. It has quite a few options to play with - detecting device/OS/manufacturer/browser.
My page just uses this code snippet for my test:
<?php
include 'Mobile_Detect.php';
$detect = new Mobile_Detect;
if($detect->isMobile()){
header("Location: http://m.bbc.co.uk/news", true, 301);
}
?>
Note I changed the 301 redirection from the supplied example as I couldn't get their version to work!
I hope this helps - I might even use it myself one day :¬)
[s]Hmmm...[/s]
I currently use PHP quite extensively on my site so want to use PHP for this exercise as well. I have downloaded a file 'php_browscap.ini' and am trying to use this file in conjunction with PHP's 'get_browser()' function but apparently the PHP.ini file needs to point to the 'php_browscap.ini' file that I have uploaded to my htdocs folder. Obviously I can'y alter PHP.ini but is there a way I can somehow add htdocs/'php_browscap.ini' to the path that will allow 'get_browser()' to find it.
Or is there an easier and more accepted way of detecting a users browser?
Any assistance here would be much appreciated, many thanks.