Thanks for your greatfull answers, - i got it now :))
Cheers, Orwell
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack InternalThanks for your greatfull answers, - i got it now :))
Cheers, Orwell
Thanks for your greatfull answers, - i got it now :))
Cheers, 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
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
<?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 */ } ?>