Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
added 72 characters in body
Source Link

Thanks for your greatfull answers, - i got it now :))

Cheers, Orwell

Thanks for your greatfull answers, - i got it now :))

Cheers, Orwell

added 923 characters in body
Source Link

After your nice answers, i'll explain maybe better.

The "header" answer is useful for me, - but im not a programmer and so i dont get it to work how i want it to use. The redirection works well, but i need no redirections, i need includes. I want to include depending ios/android/web a little text snippet (the php-files) in some of my templates.

The function works well, but my call didnt show any result. Here ho i try to call the function:

 <?php $mobile_browser = find_mobile_browser(); if($mobile_browser == 'ios') { include("ios.php"); } elseif ($mobile_browser == 'android') { include("android.php"); } else { /* if no mobile os detected, include "web.php" */ } ?> 

Hope im clearer now, and you are not to upset.

Thanks in advance, Orwell

After your nice answers, i'll explain maybe better.

The "header" answer is useful for me, - but im not a programmer and so i dont get it to work how i want it to use. The redirection works well, but i need no redirections, i need includes. I want to include depending ios/android/web a little text snippet (the php-files) in some of my templates.

The function works well, but my call didnt show any result. Here ho i try to call the function:

 <?php $mobile_browser = find_mobile_browser(); if($mobile_browser == 'ios') { include("ios.php"); } elseif ($mobile_browser == 'android') { include("android.php"); } else { /* if no mobile os detected, include "web.php" */ } ?> 

Hope im clearer now, and you are not to upset.

Thanks in advance, Orwell

deleted 5 characters in body; edited tags
Source Link
<?php $mobile_browser = find_mobile_browser(); if($mobile_browser) { include("ios.php"); /* if ios detected, do this */ } else { include("android.php"); /* if android detected, do this */ } } else { include("web_os.php"); /* if web browser-os detected, do this */ } ?> 
<?php $mobile_browser = find_mobile_browser(); if($mobile_browser) { include("ios.php"); /* if ios detected, do this */ } else { include("android.php"); /* if android detected, do this */ } } else { include("web_os.php"); /* if web browser detected, do this */ } ?> 
<?php $mobile_browser = find_mobile_browser(); if($mobile_browser) { include("ios.php"); /* if ios detected, do this */ } else { include("android.php"); /* if android detected, do this */ } } else { include("web_os.php"); /* if web-os detected, do this */ } ?> 
edited tags
Link
leppie
  • 117.6k
  • 18
  • 201
  • 300
Loading
Source Link
Loading