php.ini IIS çalışmıyor?

4 Cevap php

I magic_quotes_gpc = Off php.ini set ettik, ama phpinfo(); hala On olduğunu görmek

4 Cevap

- Ve sadece bir "the right one" orada denir php.ini birçok dosya olabilir: Her şeyden önce, size hakkını php.ini dosyası değiştirilmiş emin olmalıdır.

Sen php.ini dosyası çıktısında kullanılan hangi görebilirsiniz phpinfo(): hangi dizini gösterir Configuration File (php.ini) Path adlı bir girdi olmalıdır {[(0) }] için baktı, ve kullanılan php.ini dosyanın tam yolunu + adını gösterir Loaded Configuration File adında bir giriş.


Then : don't forget to restart the webserver, so the modifications to php.ini are taken into account (Not sure that's necessary with IIS, but as it's required with Apache, I suppose it cannot hurt with IIS)


If that doesn't change a thing : what if you try to modify another directive : is the modification taken into account ?

Alternatif olarak, siz de komut devre dışı bırakabilirsiniz:

// disable magic_quotes_runtime
if (get_magic_quotes_runtime())
{
 @set_magic_quotes_runtime(0);
}

Sen php_ini_loaded_file fonksiyonu aracılığıyla yüklenen php.ini dosyasını kontrol edebilirsiniz. Web sunucusunu yeniden başlatın.

Benim Kurulum hakkında c: \ php \ php.ini dosyası seçildi php ini. Phpmyinfo yüzden () C:\php\ da dahil olmak üzere PATH ortam değişkeni rağmen yüklemeden değildi. (SET PATH ile bir DOS isteminde bu kontrol edin).

Yani php.ini için yeniden adlandırın.

Windows Explorer'da nokta zordu.