26

I ran phpinfo and it said it was in C:\Windows but it's not there. It's not in the php folder. I did a system search and it wasn't found.

Where is it hiding?

7
  • how you installed php ... wamp ,xamp or other ? Dec 21, 2012 at 4:54
  • in wamp its in wamp\bin\php\php5.3.9 in xamp \xampp\php\php.ini Dec 21, 2012 at 4:54
  • On my PC it is located C:\Program Files\PHP. If it is not there why not use explorer to search for it (and then make a note for future reference)
    – Ed Heal
    Dec 21, 2012 at 4:56
  • you can check this by <?php phpinfo(); Dec 21, 2012 at 4:56
  • It may be hidden for some reason. Try turning on "Show hidden files and folders" in Windows Explorer.
    – DACrosby
    Dec 21, 2012 at 5:00

1 Answer 1

47

Run this code (and I am assuming your php is running, you are not able to just locate the php.ini file)

<?php

phpinfo();

?>

And check the location of the config file:

Location

6
  • 3
    This answer is lacking hand drawn objects.
    – Ja͢ck
    Dec 21, 2012 at 5:00
  • @TimPost yes check the screenshot ..he is referring to the above one while php.ini location is in the circled one..let me know if im missing something :)
    – swapnesh
    Dec 21, 2012 at 5:00
  • 8
    The Loaded Configuration file says None. Dec 21, 2012 at 5:02
  • @RyanPeschel Did you try putting one in the config file path and see if it loads? You may just have a somewhat botched installation on your hands.
    – Tim Post
    Dec 21, 2012 at 5:03
  • 1
    For anyone else seeing "none" there: In the default windows download, the ini files have -production or -development AFTER the .ini in the filename, which means they are not picked up.
    – Hobbamok
    Dec 13, 2021 at 0:57

Not the answer you're looking for? Browse other questions tagged or ask your own question.