Re: [PHP] changing language on fly

2002-05-14 Thread Yura
Here are two possible solutions: 1. ?php if(!$QUERY_STRING): $url = indexr.php; else: $url = indexr.php?$QUERY_STRING; endif; ? 2. Make link to indexr.php??php print $QUERY_STRING? THank you for help =)) I just was too lazy=( Youri You might want to use the format:

Re: [PHP] changing language on fly

2002-05-13 Thread Yura
Hi Miguel, That seems more coplecated to me. What I wanna do is to make a script to catch URL of my current page (lets say .../index.php?links=1) split it with on two on the '?' mark save as array and after changing first part 'index.php' to 'indexr.php' insert $array[0]+$array[1] back into

Re: [PHP] changing language on fly

2002-05-13 Thread Miguel Cruz
Well, you can do that, but it's a lot more work than the way I suggested (since Apache's mod_mime is already set up to handle language extensions like .en and .ru). For your way, you'd have to either set up a bunch of softlinks (ln -s index.php indexr.php), or write some very tricky mod_rewrite

[PHP] changing language on fly

2002-05-11 Thread Yura
I'm looking for possibility to change language of my site on fly you may take a look at http://body-builders.org and see yourself - now when I press language button I can get to the main page in sertain language but what I want it to do is if I'm for example at 'Links' page and click on

Re: [PHP] changing language on fly

2002-05-11 Thread Miguel Cruz
You might want to use the format: http://www.body-builders.org/index.php.en?links=1 http://www.body-builders.org/index.php.ru?links=1 so that you can take advantage of Apache's mod_mime features, and not have to do so much complicated guesswork to determine when you are displaying in an