14 05/2015

worpdress upload limit

最后更新: Thu May 14 2015 10:04:47 GMT+0800

php.ini

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

functions.php

@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );

.htaccess

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

php get url

$actual_link = “http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]”;