I am running WP 4.0. Where would I find the php.ini file?
I have found memory limits When I look in default-constants.php file. It says the following:
// set memory limits
if ( !defined(‘WP_MEMORY_LIMIT’) ) {
if( is_multisite() ) {
define(‘WP_MEMORY_LIMIT’, ’64M’);
} else {
define(‘WP_MEMORY_LIMIT’, ’40M’);
}
}
if ( ! defined( ‘WP_MAX_MEMORY_LIMIT’ ) ) {
define( ‘WP_MAX_MEMORY_LIMIT’, ‘256M’ );
}
/**
* The $blog_id global, which you can change in the config allows you to create a simple
* multiple blog installation using just one WordPress and changing $blog_id around.
*
* @global int $blog_id
* @since 2.0.0
*/
if ( ! isset($blog_id) )
$blog_id = 1;
// set memory limits.
if ( function_exists( ‘memory_get_usage’ ) ) {
$current_limit = @ini_get( ‘memory_limit’ );
$current_limit_int = intval( $current_limit );
if ( false !== strpos( $current_limit, ‘G’ ) )
$current_limit_int *= 1024;
$wp_limit_int = intval( WP_MEMORY_LIMIT );
if ( false !== strpos( WP_MEMORY_LIMIT, ‘G’ ) )
$wp_limit_int *= 1024;
if ( -1 != $current_limit && ( -1 == WP_MEMORY_LIMIT || $current_limit_int < $wp_limit_int ) )
@ini_set( ‘memory_limit’, WP_MEMORY_LIMIT );
}