garydt Posted December 13, 2007 Share Posted December 13, 2007 I change the php.ini file for the xampp testing server to get email working but the phpinfo remains the same. it says the php.ini is in xampp/apache/bin and i change that but nothing happens. I've ended up changing every php.ini file in xampp directory and still nothing changes. Please help. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted December 13, 2007 Share Posted December 13, 2007 Did you stop and start your web server to get any changes made to php.ini to take effect? Quote Link to comment Share on other sites More sharing options...
garydt Posted December 13, 2007 Author Share Posted December 13, 2007 Just tried restarting xampp and its still the same. Quote Link to comment Share on other sites More sharing options...
garydt Posted December 13, 2007 Author Share Posted December 13, 2007 What can I try now? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted December 13, 2007 Share Posted December 13, 2007 Make sure that at the start of the line you're editing doest have a semi-colon. If it does PHP will ignore that line and thus your phpinfo wont update. Quote Link to comment Share on other sites More sharing options...
garydt Posted December 13, 2007 Author Share Posted December 13, 2007 Yes, there are no semi-colons. It's still not updating. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted December 13, 2007 Share Posted December 13, 2007 The line in the php.ini probably contains a syntax error that is preventing it from getting used. You would need to post details showing what you are doing for anyone in a forum to be able to help. Quote Link to comment Share on other sites More sharing options...
revraz Posted December 13, 2007 Share Posted December 13, 2007 Is the actual file saving the change? Or is the server just not seeing the change? If the file itself isn't changing, make sure its not set to read only mode. Quote Link to comment Share on other sites More sharing options...
garydt Posted December 13, 2007 Author Share Posted December 13, 2007 Yes the file is saving the changes so the server isn't seeing the changes. Quote Link to comment Share on other sites More sharing options...
revraz Posted December 13, 2007 Share Posted December 13, 2007 Post the PHP.INI file part that you are changing. Quote Link to comment Share on other sites More sharing options...
garydt Posted December 14, 2007 Author Share Posted December 14, 2007 This is what I'm changing- ; For Win32 only. SMTP = smtp.tiscali.co.uk smtp_port = 25 ; For Win32 only. sendmail_from = me@example.com phpinfo still says smtp = localhost Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted December 14, 2007 Share Posted December 14, 2007 The actual value works for me, so there is not a syntax error with it that is preventing php from using the value. That means either the php.ini that you are changing is not the one that php is using, or there is another line in the php.ini that is overriding the value, or you have a .htaccess file that is overriding the value (or a local php.ini that is overriding the value.) For the last two cases, the "Master Value" in the phpinfo() output would be from the main php.ini and the "Local Value" in the phpinfo() output would be from a .htaccess (or local php.ini) and there would be different values. So, there 99.5% chance that the php.ini that you are changing is not the one that php is loading. Post the two lines from the phpinfo() output that show - Configuration File (php.ini) Path Loaded Configuration File Quote Link to comment Share on other sites More sharing options...
revraz Posted December 14, 2007 Share Posted December 14, 2007 Or you have code changing it. Quote Link to comment Share on other sites More sharing options...
garydt Posted December 14, 2007 Author Share Posted December 14, 2007 That's it. I had a .htacess file and i took it out and phpinfo has changed. Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.