The Little Guy Posted December 19, 2008 Share Posted December 19, 2008 A while back, I change which php.ini file I wanted to use, currently it is using this one: C:\PHP\php.ini but I don't want to use that one any more, so how can I change it to a different one? I don't remember where I went to change it. Quote Link to comment https://forums.phpfreaks.com/topic/137648-phpini-file/ Share on other sites More sharing options...
trq Posted December 19, 2008 Share Posted December 19, 2008 You would need to recompile php. Quote Link to comment https://forums.phpfreaks.com/topic/137648-phpini-file/#findComment-719458 Share on other sites More sharing options...
The Little Guy Posted December 19, 2008 Author Share Posted December 19, 2008 I want to run PHP in my in my web server (htdocs), and as a service so I can do: php C:ile.php How can I do this? I am using XAMPP to manage the site Quote Link to comment https://forums.phpfreaks.com/topic/137648-phpini-file/#findComment-719460 Share on other sites More sharing options...
The Little Guy Posted December 19, 2008 Author Share Posted December 19, 2008 OK, I have it working in my server. How can I now get it to work like I had it before so I can run it from command line, and not have that affect the server? Quote Link to comment https://forums.phpfreaks.com/topic/137648-phpini-file/#findComment-719468 Share on other sites More sharing options...
corbin Posted December 20, 2008 Share Posted December 20, 2008 If I remember correctly, the php.ini is looked for in this order: If it's an Apache module, it's looked for in the configured directory. Then: -Path -Current folder It might actually be current folder then path, but I don't remember. So, you can just put the ini in the path. Quote Link to comment https://forums.phpfreaks.com/topic/137648-phpini-file/#findComment-720145 Share on other sites More sharing options...
trq Posted December 20, 2008 Share Posted December 20, 2008 OK, I have it working in my server. How can I now get it to work like I had it before so I can run it from command line, and not have that affect the server? You need to install php's cli. Quote Link to comment https://forums.phpfreaks.com/topic/137648-phpini-file/#findComment-720157 Share on other sites More sharing options...
snickersnack Posted December 28, 2008 Share Posted December 28, 2008 Hey guys, I am dealing with a separate topic, but still inside php.ini... hope SOMEONE can help! I have recently installed WAMP as I am getting back into the code after quite some time. Everything seems to be functioning, but when I attempt to change my SMTP and PORT info it doesn't appear to be reflected in phpinfo(). Naturally, all I want to do is enable the mail function (and I admit, I have no idea what I am doing in regards to this, but still, I should see SOME changes made, right??) All of this is stemming from the below issue: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\mail.php on line 13 Thanks you guys! Quote Link to comment https://forums.phpfreaks.com/topic/137648-phpini-file/#findComment-724983 Share on other sites More sharing options...
corbin Posted December 28, 2008 Share Posted December 28, 2008 Do you have an SMTP server? Also, are you sure you're changing the right ini? Also, have you restarted the server so the changes take effect? Quote Link to comment https://forums.phpfreaks.com/topic/137648-phpini-file/#findComment-724999 Share on other sites More sharing options...
Mchl Posted December 29, 2008 Share Posted December 29, 2008 mail() will not work with just WampServer installed. You need SMTP server as well just like Corbin says. To be sure you edit correct php.ini click on WampServer's tray icon, go to PHP>php.ini Restart Apache after doing your changes. Quote Link to comment https://forums.phpfreaks.com/topic/137648-phpini-file/#findComment-725059 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.