Re: [PHP] changing language on fly

2002-05-14 Thread Yura
Here are two possible solutions: 1. 2. Make link to "indexr.php?" THank you for help =)) I just was too lazy=( Youri > 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

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 ru

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 U

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