Alain R. wrote:
Maciek Sokolewicz wrote:
2. google "apache mod_rewrite", that way you can rewrite urls of the
form www.example.org/de/whatever to www.example.org/whatever?lang=de
or even stick the de part into an environment variable $_ENV['lang'] =
'de'
- Tul
the mod_rewrite is possible only if i own/manage the apache server but i
my case, i have a provider for that so it is not possible.
can you explain a little bit more the $_ENV purpose ?
because for me it's like a simple session variable nothing more.
how do you use it ? i mean the concept...
the concept is that you use mod_rewrite for apache (also works in
litespeed httpd btw). using mod_rewrite you rewrite the request from
www.example.com/fr/index.php to www.example.com/index.php and part of
that is that it also sets the environment variable _ENV[lang] to 'fr'
for example. Please look up the documentation for mod_rewrite if you
want more info.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php