Forum Moderators: coopster

Message Too Old, No Replies

php.ini file screwy

won't use the php.ini file I specify

         

beckyh

9:12 pm on Jun 13, 2003 (gmt 0)

10+ Year Member



There is something wrong with my php. What I want to do is use the mail() function. I have changed the mail section in the php.ini file so that it uses my SMTP and from settings. However, when I run the phpinfo() function, it says that those settings are not what I put, but the default settings.

I thought maybe it was using another php.ini file. I removed all php.ini files from the machine. PHP still works, which I think is odd without the ini file. Anyhow, the path in the phpinfo() says the php.ini file is in the C:\WINNT folder (I am running Win2K Server and IIS5). There is no file there. Even when I put my php.ini file there it still doesn't recognize my settings.

I've started and stopped the webserver. I've rebooted the machine. Nothing works.

The odd thing is, when I run the mail function from the webserver itself, not through a browser, it works. For instance I run:
D:\php\php.exe C:\Inetpub..blahblah\mymail.php
that works.
I'm thoroughly confused as to how to fix this. Is it some sort of permissions problem maybe?

Please help :(

jatar_k

9:32 pm on Jun 13, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld beckyh,

strange all the things that immediately came to mind you seem to have done. You're obviously sure of the path to the .ini and have only one. Most of the time when I have had the same problem it has been a path issue. Not really sure what to recommend.

beckyh

2:55 pm on Jun 27, 2003 (gmt 0)

10+ Year Member



I reinstalled PHP and it works now.?

jatar_k

3:58 pm on Jun 27, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Well ay least that is good news. Sometimes when you run around a problem long enough you have no chance of finding the problem.

better just to start fresh.

beckyh

3:59 pm on Jun 30, 2003 (gmt 0)

10+ Year Member



OK, now that I have reinstalled php, I can't seem to pick up variables passed in the URL. I can pass them, but I can't read them. I can read values from forms. I'm using the $_POST['field'] array to read them, it worked before. I checked that register_globals is off. Did I miss a setting in my new php.ini file?

vincevincevince

4:02 pm on Jun 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



try $_REQUEST['field']

beckyh

4:26 pm on Jun 30, 2003 (gmt 0)

10+ Year Member



Maybe nevermind, I seem to be able to get one of my variables but not the other, must be something else. Sorry to bother...