Many web hosting providers disables some functions in php “for security reasons”.
In this tutorial i’ll show you how to create a custom php.ini using htacces
First we open the .htaccess file. If you do not already have a .htaccess file, create one and add the bottom code.
View Code HTML
Order deny,allow Deny from All #below this you will have to add your directory root where the .htacces file is located. SetEnv PHPRC / |
The above script will search any file with ini extension.
After we’ve added the above code to the .htacces file we have to create the file php.ini and add the bottom code
View Code HTML
max_execution_time = 0 max_input_time = 0 memory_limit = 64M post_max_size = 64M upload_max_filesize = 60M magic_quotes_gpc = On magic_quotes_runtime = Off |
The above settings i’m using on my all websites to prevent some errors of script.