Re: Configuration problem?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Checkout the link below to see the order in which PHP looks for the configuration file.

http://www.php.net/manual/en/configuration.php#configuration.file

Then, as someone suggested, search you HD for php.ini.

I remember I had this problem before and got in aright knot as I wanted php5, and 4.2.3 on the same machine and they were all using the wrong config files :)

Tryst

-----Original Message-----
From: George Pitcher <george.pitcher@xxxxxxxxxxx>
To: php-windows@xxxxxxxxxxxxx
Sent: Tue, 23 May 2006 14:29:42 +0100
Subject: RE:  Configuration problem?

 Daniel,

It may use C:\Windows\php.ini on your box, but mine is definitely using
C:\PHP\php.ini.

On my NT boxes, I have the following at the end of httpd.conf:

# configure the path to php.ini
PHPIniDir "C:/php"

But no reference at all on my XP box.

George in Oxford

-----Original Message-----
From: Daniel Anderson [mailto:shadowedmyth@xxxxxxxxxxx]
Sent: 23 May 2006 2:13 pm
To: php-windows@xxxxxxxxxxxxx
Subject: Re:  Configuration problem?


PHP uses the settings from: C:\Windows\php.ini, not C:\PHP\php.ini

Have you ensured you've allowed Apache to parse HTML files to act as
PHP
Files?

----- Original Message -----
From: "Bill Angus" <mdangus@xxxxxxxxxxxxx>
To: <php-windows@xxxxxxxxxxxxx>
Sent: Monday, May 22, 2006 7:29 PM
Subject:  Configuration problem?


I have php installed and a working copy of phpMyAdmin, MySQL and
Apache2.0.58 on a windows2k box.

phpMyAdmin works fine, as do a couple of other php scripts.
However, when I
go to try to code in php myself, I get a blank screen. I downloaded
zend-studio to try to see if I could trace the fault with my setup.
The
studio shows that I can do simple echo scripts -- but that I get the
following error when I try to connect to the mySQL database

Debug Error: C:\Homepage\psychtest\private\search.htm line 13 - Call
to
undefined function mysql_pconnect()

the following call (from your php tutorial) also returns nothing.
echo $_SERVER['HTTP_USER_AGENT'];

The zend studio debugger returns the following message...

Notice: C:\Homepage\psychtest\private\search.htm line 10 -
Undefined index:
HTTP_USER_AGENT

Am I supposed to insert a reference to a library of functions
somewhere at
the start of my code?

I was able to enter phpinfo in the zend debugger, and I noticed that
the
info returned was NOT the same as the settings in the php.ini file in
my
C:/php/php.ini file.

Thanks in advance for any ideas or suggestions you can provide.
Have a great
day!

Bill Angus, MA
http://www.psychtest.com

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux