Mailinglisten-Archive |
#!/usr/bin/perl # Programm: index.cgi use CGI; $verz = 'http://mei.webseitn.at'; for ($ENV{REMOTE_HOST}) { $country= /.at/ && 'welcome.at.' || /.de/ && 'welcome.de.' || /.ch/ && 'welcome.ch.' || /.li/ && 'welcome.ch.' || 'english/welcome.en.'; } for ($ENV{HTTP_USER_AGENT}) { $browser = /MSIE/ && 'ie.html' || /Netscape6/ && 'ie.html' || 'ns.html'; } print "Location: $verz/$country$browser\n\n"; exit; ---- snip ---- >-----Ursprüngliche Nachricht----- >Von: php-admin_(at)_phpcenter.de [mailto:php-admin_(at)_phpcenter.de]Im Auftrag >von S.Ludwig_(at)_astrastudio.de >Gesendet: Montag, 03. Juni 2002 19:50 >An: php_(at)_phpcenter.de >Betreff: Re: Re[2]: [php] IP auslesen und einem Land zuordnen ? > > >Hmmm ich würde sowas mit einer whois anfrage aufs netz bzw. auf >die IP machen: >und dann könnte man ja nach country suchen und TADA: das steht >doch tatsächlich DE drinne > >--- SNIP --- >sascha_(at)_linux:/ # whois 193.17.20.42 >% This is the RIPE Whois server. >% The objects are in RPSL format. >% Please visit http://www.ripe.net/rpsl for more information. >% Rights restricted by copyright. >% See http://www.ripe.net/ripencc/pub-services/db/copyright.html > >inetnum: 193.17.20.0 - 193.17.20.255 >netname: STRUCTUR >descr: structur GmbH >descr: D-W-7302 Ostfildern 4 >country: DE >admin-c: EK19-RIPE >tech-c: EK19-RIPE >tech-c: EH1626-RIPE >mnt-by: RIPE-NCC-NONE-MNT >changed: cp_(at)_deins.Informatik.Uni-Dortmund.DE 19921005 >changed: rv_(at)_Informatik.Uni-Dortmund.DE 19930819 >changed: ripe-dbm_(at)_ripe.net 19990706 >changed: ripe-dbm_(at)_ripe.net 20000225 >source: RIPE > >--- SNAP --- >oder z.B.: >--- SNIP --- >sascha_(at)_linux:/ # whois 62.115.23.42 >% This is the RIPE Whois server. >% The objects are in RPSL format. >% Please visit http://www.ripe.net/rpsl for more information. >% Rights restricted by copyright. >% See http://www.ripe.net/ripencc/pub-services/db/copyright.html > >inetnum: 62.115.0.0 - 62.115.255.255 >netname: UK-TELIANET-20010809 >descr: Telia Network Services UK >descr: 4th Floor, Holborn Gate >descr: 330 High Holborn >descr: London WC1V 7QY >descr: PROVIDER >country: GB >admin-c: TR889-RIPE >tech-c: TR889-RIPE >tech-c: TUR1-RIPE >status: ALLOCATED PA >mnt-by: RIPE-NCC-HM-MNT >mnt-lower: TELIAUK-LIR >mnt-routes: TELIAUK-LIR >changed: hostmaster_(at)_ripe.net 20010809 >source: RIPE > > > >--- SNAP --- >-- >** http://www.php-center.de ** >Die PHP-Liste: mailto: php_(at)_phpcenter.de >http://lists.phpcenter.de/mailman/listinfo/php
php::bar PHP Wiki - Listenarchive