|
Forum Sponsor (Advertise with us)
 |
 |
|
 |

01-13-2011
|
 |
Resident Member
Company name: True Harmony Media, LLC
|
|
Join Date: Dec 2007
Location: New Jersey
Posts: 1,823
Blog Entries: 15
|
|
PHP Code to redirect to mobile website
Hello,
I have a question and was hoping someone can point me in the right direction. I designed a mobile website and I am now at the point where I need to add some mobile device detection and redirection code. I have found several different resources citing PHP code for mobile device detection and redirection. Gave it a try and for some reason, I can't get the code to work. I know I am probably missing some small step. My main concern is getting code that I know works and can trust.
So here are my questions:
1. Is there a trusted website I can go to for code samples?
2. Tips for implementation?
The original site is flash based, so in the end I want the user to land on the index.php page -detect whether a person is using a mobile device or not and then redirect to the proper version (either the flash version or mobile version).
Thanks!
Darlene
|
|

01-13-2011
|
 |
Community Leader
Company name: Your Virtual Wizard
|
|
Join Date: Sep 2008
Location: Florida-Gulf Coast
Posts: 2,478
Blog Entries: 6
|
|
Re: PHP Code to redirect to mobile website
Darlene,
I do not have a response to your question but I want to say how truly 'WOW-ed' I am with this project.
I'm amazed!
With all I have read recently, mobile applications is really the next level for technology and you are right on it!
Good Luck! (Sorry to hijack your thread but I am so happy for you!)
Janine
|
|

01-13-2011
|
 |
Contributing Member
Company name: Tooke Consulting
|
|
Join Date: Nov 2010
Location: Western North Carolina
Posts: 82
Blog Entries: 2
|
|
Re: PHP Code to redirect to mobile website
I used a plug in for my wordpress built site from here http://www.websitez.com/ it looks like everything is just for word press but you might find some code or something.
|
|

01-13-2011
|
 |
Resident Member
Company name: SunRise Virtual Solutions
|
|
Join Date: Jun 2009
Location: Iowa
Posts: 1,059
Blog Entries: 1
|
|
Re: PHP Code to redirect to mobile website
Hey D, have you looked around Hamid and Tess's blog: Coding Recipes (scroll down the list of categories on the right)? Since, among other things, they do mobile apps, maybe there is something there that might work for you.
Or a Wordpress plugin like http://wordpress.org/extend/plugins/...bile-detector/ or http://wpfeed.com/2009/03/top-wordpress-mobile-plugins/. Not sure if these are what you are looking for - just did a quick cursory look.
HTH a bit,
__________________
Jules, SunRise Virtual Solutions - I rock WordPress customization, XHTML/CSS websites, and Administrative duties.
|
|

01-13-2011
|
 |
Founder, Virtual Assistant Forums
Company name: Virtual Assistant Forums
|
|
Join Date: Apr 2007
Location: Portland, OR
Posts: 9,562
Blog Entries: 14
|
|
Re: PHP Code to redirect to mobile website
Hi Darlene, I poked Hamid for a resource to help you and he sent the following link:
http://www.9lessons.info/2010/09/red...-with-php.html
I hope this helps!
If you get stuck post back...
[Jules, thanks for the link to the Codehead blog  I'd love to get Hamid to reply with his own, much prettier, code for this but he's knee deep in developing an iPhone app today!}
__________________
Are you ready to stop dreaming and start DOING?
Join the next Virtual Assistant Business Jumpstart beginning May 8th!
|
|

01-13-2011
|
 |
Resident Member
Company name: True Harmony Media, LLC
|
|
Join Date: Dec 2007
Location: New Jersey
Posts: 1,823
Blog Entries: 15
|
|
Re: PHP Code to redirect to mobile website
Thank you for all the great resources. I will look at them tomorrow and see how it goes. Tess, I briefly looked at the link you provided and at first glance, it sounds like what I am looking for. Thanks!!
|
|

06-06-2011
|
 |
Founder, Virtual Assistant Forums
Company name: Virtual Assistant Forums
|
|
Join Date: Apr 2007
Location: Portland, OR
Posts: 9,562
Blog Entries: 14
|
|
Re: PHP Code to redirect to mobile website
Hi Darlene, how did this go for you?
I came across another resource today that I thought might be useful to you (or anyone else who lands here  )
Info includes the text file you need to add to your site.
__________________
Are you ready to stop dreaming and start DOING?
Join the next Virtual Assistant Business Jumpstart beginning May 8th!
|
|

06-06-2011
|
 |
Resident Member
Company name: True Harmony Media, LLC
|
|
Join Date: Dec 2007
Location: New Jersey
Posts: 1,823
Blog Entries: 15
|
|
Re: PHP Code to redirect to mobile website
Hi Tess,
I know I got the PHP redirect to work, but I honestly don't recall what code I ended up using. I may have found the one we used previously that I just couldn't locate at the time.
Thank you for the follow-up and the additional resource!
|
|
 |
«
Previous Thread
|
Next Thread
»
| Thread Tools |
 Show Printable Version
 Email this Page
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Rules
|
|
|
All times are GMT -4. The time now is 12:11 AM.
|
Featured VA websites:

The Ruby Slipper VA

Virtual Miss Begley

Clerical Essentials
Get featured!
|