CrossY Posted November 27, 2012 Share Posted November 27, 2012 Hi, Since im still using 1.4.9, i'm looking for a way to redirect mobile shoppers to a different mobile website. The mobile site will be created in HTML or whatever, it's just for the viewers to browse the items, so it's not a mobile version of the website. They don't have to place their orders on their phone or whatever. Is this possible? How do I make my website recognize these mobile shoppers? Thanks in advance, Dave Link to comment Share on other sites More sharing options...
CrossY Posted November 27, 2012 Author Share Posted November 27, 2012 (edited) Update: I've tried using the following script: http://www.dynamicsi...edetection.html Placed the <?php include("inc/mobiledetect.php"); DetectBrowser(); ?> at the top of my index.php file, but then it gave the following error: Deprecated Function eregi() is deprecated in /home/xxx/domains/xxx.nl/public_html/mobiel/mobile.php on line 11 Edited November 27, 2012 by CrossY (see edit history) Link to comment Share on other sites More sharing options...
math_php Posted November 28, 2012 Share Posted November 28, 2012 Hi Dave, The function detectBrowser use a php deprecated instruction EREGI. Change your version of PHP if possible or use something else than EREGI. Have a good day. Link to comment Share on other sites More sharing options...
CrossY Posted November 28, 2012 Author Share Posted November 28, 2012 Hi Math_php, My PHP skills are close to none. Could you eleborate a little bit, i'm not quite sure what you mean.. Cheers, Link to comment Share on other sites More sharing options...
math_php Posted November 28, 2012 Share Posted November 28, 2012 Hi CrossY, It means that your hosting has a version of PHP that say 'EREGI' is an old, obsolete, deprecated function, please rewrite DetectBrowser() with modern PHP. There is no bug, just a warning that EREGI is no longer used. I think you can replace it with preg_match(). Good luck Regards Link to comment Share on other sites More sharing options...
CrossY Posted December 2, 2012 Author Share Posted December 2, 2012 Hi math_php, Thanks for your reply. I'm now getting the following: Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /xxxx/public_html/mobiel/mobile.php on line 11 Deprecated: Function eregi() is deprecated in /xxxx/public_html/mobiel/mobile.php on line 11 Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /xxxx/public_html/mobiel/mobile.php on line 14 Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /xxxx/public_html/mobiel/mobile.php on line 17 Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /xxxx/public_html/mobiel/mobile.php on line 19 Anyone can help me out with a proper code? Thanks in advance! Gr, Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now