Hello,

I'm desperate! I so can't find this php.ini
on my mac!! I tried everything! I just want to turn on register_globals in the php.ini but I can't find it! It has to be somewhere or not? I use the php-version4.3 that comes with os10.3.

WHere is this file?
Or what can I do to get one?

I tried to update to php5 but that didn't work either.

    5 days later

    hey I don't have the answer to your question but I would hope that you can help me with mine...see am new to mac but i just bought one powerbook and i need to use php and mysql...can you help me out?

      9 days later

      ok, create a new file in ur htdos and call it like test.php or something and have the script look like

      
        <?php
      
      phpinfo();
      
        ?>
      
      

      That will tell you where your php.ini file is located.

        a year later

        well i did it, and still i dont find the php.ini.....i have a blank page and nothing more, my php 5 is working but i cant find the php.ini

          If you got a blank page when you ran that script then your php is not working properly.

          What do you get if you run whereis php.ini (assuming mac has it) from a terminal?

          Besides all this. register_globals should be left 'off' for security reasons. You should code around it, as it will not be supporeted in future versions of php, and most hosts already have it switched off.

            It does not have one by default.

            I'm on Tiger, and I custom installed PHP 5.1, but I left the default PHP 4 in place.

            See if you have the file /etc/php.ini.default or /private/etc/php.ini.default. If so, rename that to php.ini, and there is your config file for the default PHP install on OS X.

            The other option is to not use the default PHP install. Marc Liyanage has some great PHP packages for OS X at http://www.entropy.ch/software/macosx/php/

            @$moke, use one of Marc's PHP packages, and you can get install packages for MySQL for OS X from mysql.com

              3 months later

              use the terminal from you mac os x, you need to know a bit of mac commands for that.

                Write a Reply...