Page 1 of 1

Include path in php.ini file won't change

PostPosted: 22. September 2008 09:40
by richo
I needed to change the include path in my php.ini file as every time I do a "require" in PHP it uses the include path, stopping my "requires" from working properly.

So I commented out the line in the .ini file and changed it too to make sure.

Then re-tried the php page i was working on and it still errored and the include path hadn't changed.

So i tried restarting my computer (so that apache restarted) and still the include path hadn't changed!

Has anyone else had this problem or found changes in the .ini file aren't taking effect???

PostPosted: 22. September 2008 09:53
by Wiedmann
or found changes in the .ini file aren't taking effect???

Maybe you are changing the wrong "php.ini"?

PostPosted: 22. September 2008 10:21
by richo
I checked the path of the ini file doing a phpinfo() and it pointed the normal C:\xampp\apache\bin\php.ini

PostPosted: 22. September 2008 10:27
by Wiedmann
I checked the path of the ini file doing a phpinfo() and it pointed the normal C:\xampp\apache\bin\php.ini

And you have changed the include_path in this file? (You can verify this also with phpinfo)

PostPosted: 22. September 2008 13:27
by richo
I changed it in the .ini file, saved it.

But when I check with the phpinfo(), it hasn't changed.

PostPosted: 22. September 2008 13:32
by Wiedmann
But when I check with the phpinfo(), it hasn't changed.

Then you are not changing the "php.ini" from phpinfo().

(Don't forgett to restart Apache after a change)

PostPosted: 24. September 2008 09:03
by richo
I'm pretty sure I am! But it may be the restarting of apache aspect.

What's the best way to restart it?

PostPosted: 24. September 2008 10:02
by Wiedmann
What's the best way to restart it?

How did you start Apache?

PostPosted: 25. September 2008 09:00
by richo
It automatically starts.

I tried restarting my computer to get it to restart but didn't work.

Maybe it's just an anomaly.

PostPosted: 25. September 2008 10:30
by Wiedmann
It automatically starts.

I guess you have installed the Apache as service. You can restart each Windows service with e.g. the service control manager. Or just hit stop and start in the XAMPP control panel.

I tried restarting my computer to get it to restart but didn't work.

What did not work? (If you restart your PC, Apache also restart ;-) )

PostPosted: 26. September 2008 09:02
by richo
Yeah, I tried stop/start in the xampp control panel thing and restarting computer. Neither worked, when it came up with the error the include path was exactly the same.

Don't know what i'm doing wrong, i give up!

PostPosted: 26. September 2008 09:07
by Wiedmann
Neither worked,

Please explain "Neither worked" more detailed...

Can't you verify the changed "include_path" with phpinfo()?

PostPosted: 26. September 2008 14:03
by richo
Yeah, but i mean my changes never take effect. I change the include_path in the .ini file, restart apache, check the include_path again and it hasn't changed.

Seriously i think i should give up, it's a lots cause!

PostPosted: 26. September 2008 14:14
by Wiedmann
I change the include_path in the .ini file, restart apache, check the include_path again and it hasn't changed.

Your OS?