ID:               42849
 Comment by:       yaddayadda at mailinator dot com
 Reported By:      inglis-php at yahoo dot com dot au
 Status:           No Feedback
 Bug Type:         *General Issues
 Operating System: win xp pro
 PHP Version:      5.2.4
 New Comment:

I'm a new user of PHP/MySQL. I installed both and phpMyAdmin with no
deviation from the instructions and could not get phpMyAdmin to work at
all (it could not load the mysql extension). Despite reading numerous
posts about what to uncomment in php.ini and what to add to the PATH,
whatever I did did not seem to have any effect. Only after I ran
phpinfo() did I find out that the path to php.ini was somehow pointing
the Windows folder. I was editing php.ini in C:\PHP. 

There are many, many frustrated students and beginners out there having
this exact issue. They don't know it is a bug. They are told to "just
copy php.ini to your Windows folder" as a fix. I did not want to do this
because I set the PATH to C:\PHP so I knew it should be looking there
and NOT in C:\Windows (because there was no php.ini there, it should
continue looking through the locations specified in PATH). I still do
not know how to change this and ended up moving the file out of
frustration and everything began to work. 

So many people are experiencing this frustration and wasting hours
trying to fix it. Some are even giving up and moving to hosts that
already have PHP installed rather than continue to learn on their own.
If you install PHP to C:\PHP, the php.ini file it looks for should be
there!


Previous Comments:
------------------------------------------------------------------------

[2008-12-01 15:59:02] rafael dot amador at gmail dot com

Bug #39191

------------------------------------------------------------------------

[2008-12-01 15:55:46] rafael dot amador at gmail dot com

Bug #37919 PHP <---- The same bug

------------------------------------------------------------------------

[2007-10-13 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2007-10-05 15:23:16] [EMAIL PROTECTED]

Exactly what does phpinfo() have about php.ini? There are 2 places in
the output, paste both here..(in the very beginning of the output..)


------------------------------------------------------------------------

[2007-10-04 07:37:01] inglis-php at yahoo dot com dot au

Description:
------------
I have just used the .msi file to install php 5.2.4  All appeared to
work well. I installed to c:\PHP folder. Then wrote a small .php test
file (below) and tried it and the noticed that: 
The phpinfo() function is reporting php.ini file as being in the
'C:\Windows' directory.  It is actually located in 'C:\PHP' directory. I
have searched my c drive and there is only one copy of php.ini and it is
in the c:\PHP directory.  I assume it finds the php.ini via the path
environment which now starts with c:\PHP.


Reproduce code:
---------------
<html>
 <head>
  <title>PHP Test</title>
 </head>
 <body>
 <?php echo '<p>Hello World</p>'; ?> 
<?php phpinfo(); ?> 
 </body>
</html>

Expected result:
----------------
C:\PHP

Actual result:
--------------
C:\Windows


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42849&edit=1

Reply via email to