You are not logged in.

wcf.regNote.message

Manuel

Trainee

  • "Manuel" started this thread

Posts: 64

  • Send private message

1

Thursday, June 8th 2006, 12:37pm

Browser auslesen

Hallo Leute,

ich möchte gerne auslesen welchen Browser der User gerade benutzt. Habe gelesen das das mit der Variable $HTTP_USER_AGENT gehen soll.
Klappt bei mir aber nicht es wird nichts angezeigt.

Kann mir einer weiterhelfen???
Gruß M-Arens

Spy

Trainee

Posts: 127

Occupation: Feriengammler

  • Send private message

2

Saturday, June 10th 2006, 4:03pm

Source code

1
2
3
4
5
6
7
8
<?php  
  if (strpos(@$HTTP_USER_AGENT, "MSIE"))
  {
    echo "IE";
  } else {
    echo "Opera,Firefox,Mozilla...";
  }
?>


Müsste so sein am besten mal probieren
Die Welt ist irgendwie total Buggy programmiert X(

flo

Unregistered

3

Saturday, June 10th 2006, 6:53pm

das ist schön und hat n schönes beispiel ;)

phpfreaks

wcf.user.socialbookmarks.titel