NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Which php.ini is in effect


Joined: 14 Jan 2013
Posts: 4
Reply with quote
I am having trouble finding the active php.ini file when using PhpED.

What ini file is in effect? How can I tell?

Thanks.
Bill S.
View user's profileFind all posts by bwls7529Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
I'm not sure what you mean under "active" php.ini. Path to php.ini is always printed in phpinfo. Either run <?php phpinfo(); ?> script, or run php.exe -i. Normally php.ini is in the php.exe's directory.

NOTE: if you have multiple different versions of php (which is THE case if you install PhpED), you can't have just one "active" php.ini because this file has for example extension_dir settings and it means that php.exe will load extensions from this directory. Since extensions for one version of php are not compatible with another, you need correct extension_dir for each version of php.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
PHP INI


Joined: 14 Jan 2013
Posts: 4
Reply with quote
I need to change the SMTP host to use PhpEd to test my work. It constantly reports it as Localhostl.

I see these php folders in the PhpEd directory and have changed the SMTP host in each php.ini file in each folder but it is still being reported as localhost.
1) php
2) php5
3) php53
4) php54
5) php55

So how can I set the SMTP host properly? Changing the setting in these folders does not affect the change.

Thanks,
Bill S.
View user's profileFind all posts by bwls7529Send private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
On a Windows server, you can setup mail in php.ini:

Code:
[mail function]
; For Win32 only.
SMTP = x.x.x.x
smtp_port = 25

; For Win32 only.
sendmail_from = development@mydomain.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =


On Linux, sendmail is normally used (unless you are using a mail SMTP library), which means it is Linux settings that need adjusting to change the SMTP host, not PHP settings.
View user's profileFind all posts by plugnplaySend private message
Which php.ini is in effect
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic