![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Fucked if I know
Join Date: Dec 2002
Location: Do you have a flag?
Posts: 23,368
|
Scripting Gurus! Help please!
I need a code of some sort that reads the user's browser and redirects the user to an area of the site made specifically for that type of browser.
Example: User A is using a desktop with Nutscrape and User B is using a Palm Pilot with a wireless browser. I need to redirect User B to a wireless area of my site. Help! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Fucked if I know
Join Date: Dec 2002
Location: Do you have a flag?
Posts: 23,368
|
BuMp
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
making it rain
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,117
|
I can do this in PHP fairly easily.
(see sig) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
making it rain
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,117
|
Own3d by emb.ed protection again!
![]() Doing this with java.script is a hack anyway. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Jun 2003
Location: Lutz, FL
Posts: 1,022
|
If the server is using Apache, you can just use Mod_Rewrite in a .htaccess file.
For example: Code:
RewriteEngine on RewriteCond %{HTTP_USER_AGENT} ^Mozilla/3.* RewriteRule ^foo\.html$ foo.NS.html [L] RewriteCond %{HTTP_USER_AGENT} ^Lynx/.* [OR] RewriteCond %{HTTP_USER_AGENT} ^Mozilla/[12].* RewriteRule ^foo\.html$ foo.20.html [L] RewriteRule ^foo\.html$ foo.32.html [L]
__________________
Clips4Sale.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Feb 2003
Location: Right Here. Right Now.
Posts: 596
|
maybe PHP Sniff
__________________
Need a Dedicated Box with BALLS ? How about a Dedicated Server starting at just $49 per month. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Jun 2003
Location: Costa Rica
Posts: 1,953
|
For this particular answer, I am going to have to say http://www.php.net/manual/en/tutorial.useful.php
![]() If you read that, you will get a grasp on what it is you are trying to do. Then after you find out what the browsers names are you'd do some code like PHP Code:
__________________
Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Join Date: Nov 2003
Location: Penguin vs Devil
Posts: 745
|
Quote:
V
__________________
"Only the dead have seen the end of war." - Plato "In the abscence of orders, go find something and kill it." - Erwin Rommel "A man's worth is no greater then the worth of his ambitions." - Marcus Aurelius |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Fucked if I know
Join Date: Dec 2002
Location: Do you have a flag?
Posts: 23,368
|
Thanks everyone!
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |