apache2 и windows-1251

Just4Fun

Guest
apache2 и windows-1251

Госопода, помогите разобраться с проблеммой.
Есть апач, 2ой, но при вводе из браузера строки ?test=привет, оно мне переменную test = теÑ�Ñ выдает... тобишь UTF-8, ...

Может кто сталкивался?

пс. после установки апача в конфиге ничего не менял, апач 2.053
 

alexhemp

Новичок
Just4Fun

Под Windows что-то было c кодировкой, поставь 2.0.54.

offtop: я вот все думаю - откуда у людей проблемы с Apache2 - а потом понял - из за Windows ;-) Под FreeBSD проблем ну просто никаких не встретил...
 

lucas

Guest
Проблема связки Apache2 + PHP не в ОС, а в том, что один multithreaded, а другой thread unsafe.

updated.

Why shouldn't I use Apache2 with a threaded MPM in a production environment?

PHP is glue. It is the glue used to build cool web applications by sticking dozens of 3rd-party libraries together and making it all appear as one coherent entity through an intuitive and easy to learn language interface. The flexibility and power of PHP relies on the stability and robustness of the underlying platform. It needs a working OS, a working web server and working 3rd-party libraries to glue together. When any of these stop working PHP needs ways to identify the problems and fix them quickly. When you make the underlying framework more complex by not having completely separate execution threads, completely separate memory segments and a strong sandbox for each request to play in, feet of clay are introduced into PHP's system.

If you feel you have to use a threaded MPM, look at a FastCGI configuration where PHP is running in its own memory space.

And finally, this warning against using a threaded MPM is not as strong for Windows systems because most libraries on that platform tend to be threadsafe.
(c) http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2

Вариации на тему:

В PHP полно расширений, при программировании которых не была применена практика безопасного программирования для нитей (thread-safe). Поэтому, даже если ядро языка перестанет быть экспериментальным для Apache2, никто не гарантирует, что любое из расширений не сможет вызвать крах системы.
(c) топик из "Избранного"
 

tony2001

TeaM PHPClub
давайте не будем играть в испорченный телефон и будем приводить цитаты.
источник для цитат - в форуме Избранное.
 

Profic

just Profic (PHP5 BetaTeam)
Tools->Preferences->Network->Encode international web adresses with UTF-8 в опере. В других браузерах ести такие же по смыслу настройки.
[m]urlencode[/m]()
 

alexhemp

Новичок
lucas

Да я в курсе вообще-то... я про другие проблемы, не описанные в мануале...

Под FreeBSD Apache2 форкается как обычно... Но вообще я его использовал в надежде получить работающий mpm_perchild, а так-то он конечно без надобности...
 
Сверху