I need to set upload_tmp_dir
directive on my PHP server. I've read that there is a php.ini file which I can specify. But I can't find any php.ini files on my Mac. I'm using OSX 10.8. Any suggestions?
user. ini file is the default configuration file for running applications that require PHP. It is used to control variables such as upload sizes, file timeouts, and resource limits. This file is located on your server in the /public_html folder.
ini file: Whenever we install PHP, we can locate the configuration file inside the PHP folder. If using xampp, we can find the configuration file in one or many versions, inside the path '\xampp\php'. Note: Other versions of this file are php. ini-development and php.
Run the command below on your server:
php -i | grep php.ini
then you can see something like below:
Configuration File (php.ini) Path => /usr/local/php/etc
Loaded Configuration File => /usr/local/etc/php54/php.ini
make php file with:
<?php
phpinfo();
run in the browser, then you see the path of PHP configuration files ;)
if you use the mac os default install php ,the php.ini at /etc/php.ini
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With