marmite Posted April 20, 2007 Share Posted April 20, 2007 I've lost it, or I never had it. I'm taking over a site from a developer, and have discovered that none of my mailtos work on my local server. Apparently this is configured in the php.ini file, which I can't locate. I can't find it on the Prod server, either (although I only have access to one folder of this, so it could be further up) Anyone know where this file is usually kept? Is there a protocol? Thanks...! Quote Link to comment https://forums.phpfreaks.com/topic/47907-where-is-phpini/ Share on other sites More sharing options...
cmgmyr Posted April 20, 2007 Share Posted April 20, 2007 check your phpinfo() that will tell you where it is Quote Link to comment https://forums.phpfreaks.com/topic/47907-where-is-phpini/#findComment-234116 Share on other sites More sharing options...
per1os Posted April 20, 2007 Share Posted April 20, 2007 Depends on the system, in windows it can be located in the following: c:\windows C:\winnt c:\windows\system32 c:\winnt\system32 c:\php c:\apache\php c:\program files\apache 2\apache 2\php For linux it varies quite a bit, the phpinfo is the best way to figure it out. Quote Link to comment https://forums.phpfreaks.com/topic/47907-where-is-phpini/#findComment-234117 Share on other sites More sharing options...
marmite Posted April 20, 2007 Author Share Posted April 20, 2007 Thanks guys, so it's computer-specific, not site-specific? So, there's only going to be one on the whole Prod server (which has 30 sites)? Thanks, sorry, still new to this! Emma Quote Link to comment https://forums.phpfreaks.com/topic/47907-where-is-phpini/#findComment-234128 Share on other sites More sharing options...
per1os Posted April 20, 2007 Share Posted April 20, 2007 It is server specific. If it is running on 30 sites, be careful what you change. What you may want to look into is www.php.net/init_set Quote Link to comment https://forums.phpfreaks.com/topic/47907-where-is-phpini/#findComment-234137 Share on other sites More sharing options...
marmite Posted April 20, 2007 Author Share Posted April 20, 2007 Well, I can't change it on the server anyway - I guess I don't need to, because it's working on the live site! The question is why <? mail( function isn't working on my localhost. Do you know whether I need to change something in the ini file, and if so, what? Thanks ??? Quote Link to comment https://forums.phpfreaks.com/topic/47907-where-is-phpini/#findComment-234141 Share on other sites More sharing options...
per1os Posted April 20, 2007 Share Posted April 20, 2007 You must have a mail server installed on your computer for it to work on the localhost. Most servers use sendmail via linux. For Windows it is different and you need to setup your own mail server, and hope that your ISP has not blocked port 25. Quote Link to comment https://forums.phpfreaks.com/topic/47907-where-is-phpini/#findComment-234143 Share on other sites More sharing options...
marmite Posted April 20, 2007 Author Share Posted April 20, 2007 Hmm. Does a mail server come with a basic apache installation? Looks like maybe I'll have to wing it and test it on Prod! Thanks for your help, you are rightly called "proficient" ! Quote Link to comment https://forums.phpfreaks.com/topic/47907-where-is-phpini/#findComment-234157 Share on other sites More sharing options...
per1os Posted April 20, 2007 Share Posted April 20, 2007 No, the mail server does not come with apache. You have to download/buy one. Quote Link to comment https://forums.phpfreaks.com/topic/47907-where-is-phpini/#findComment-234190 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.