[PHP] A Language Script?

2002-03-22 Thread ....::: rObEr2 :::....

Hey!

I want to have my website on English, Spanish and Norwegian so I want to
have a PHP script that sends the user to the page on their language.

I've seen some portals doing some PHP things, and sending the user to a
'fancy' URL with the Languange that their Borwser/OS is on.

Can someone please tell me how it's done?

Thanks for your support...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] A Language Script?

2002-03-22 Thread Demitrious S. Kelly

$HTTP_ACCEPT_LANGUAGE

-Original Message-
From: ::: rObEr2 ::: [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 22, 2002 1:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] A Language Script?

Hey!

I want to have my website on English, Spanish and Norwegian so I want to
have a PHP script that sends the user to the page on their language.

I've seen some portals doing some PHP things, and sending the user to a
'fancy' URL with the Languange that their Borwser/OS is on.

Can someone please tell me how it's done?

Thanks for your support...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] GOOD PRACTICE (was: RE: [PHP] A Language Script?)

2002-03-22 Thread Demitrious S. Kelly

I've been watching the lists from time to time and I see a lot of
requests for information like this floating around. I wonder if people
know of the phpinfo() command... in my experience it's been an
invaluable tool to help with little issues that pop up with 'where do I
find out XXX about XXX' make a 3 line php script called info.php
containing:


?php
phpinfo();
?


And you then find yourself amongst a wealth of useful information.  I
apologize if this sounds patronizing - it most certainly is not
delivered in such a tone... I really do think that people just don't
know about this... Or they are too lazy to check it first... (hopefully
more of the former rather then the later)

Ok I'm done ranting..

Cheers everyone!

-Original Message-
From: ::: rObEr2 ::: [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 22, 2002 1:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] A Language Script?

Hey!

I want to have my website on English, Spanish and Norwegian so I want to
have a PHP script that sends the user to the page on their language.

I've seen some portals doing some PHP things, and sending the user to a
'fancy' URL with the Languange that their Borwser/OS is on.

Can someone please tell me how it's done?

Thanks for your support...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] A Language Script?

2002-03-22 Thread Demitrious S. Kelly

http://vancouver-webpages.com/multilingual/ccodes.txt
http://vancouver-webpages.com/multilingual/iso639a.txt

This seems like useful information for this purpose... and so I've
decided to forward it to the list as well... if this is considered
spamming please let me know so that I can avoid it in the future.
Thanks

Cheers!

-Original Message-
From: ...:: Rober2 ::... [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 22, 2002 2:25 PM
To: Demitrious S. Kelly
Subject: Re: [PHP] A Language Script?

Thanks!!

BTW: do you know about any site that provides the e.g. en-us tag but
for
other languages? I've tried the W3 but no result...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php