ahmed
ahmed

Reputation: 14666

cannot change the php.ini file!

I have changed the php.ini file in the location (C:\xampp\apache\bin\php.ini) for Xampp and restart the server

I am sure it is the real php.ini file because I have checked with phpinfo()

however my changes does not take effect!

why?

update:


I have PHP Version 5.2.8

I have changed the file C:\xampp\php\php5.ini

but the problem still the same no effects

Upvotes: 1

Views: 4946

Answers (2)

ahmed
ahmed

Reputation: 14666

I found the solution

I used to restart the Apache using this file "xampp_restart.exe"

but now I figured out that I should right click on the file and chose "run as administrator"

Thanks

Upvotes: 3

Asaph
Asaph

Reputation: 162761

It's possible that whatever change you made in php.ini is overridden at either one of 2 levels:

  1. Apache virtual host setting

  2. At runtime in php e.g. ini_set()

Check those out and see what you find.

What setting are you changing in php.ini?

Upvotes: 2

Related Questions