How to increase PHP memory limit

If you like to increase the PHP memory limit in any folder you just create a file called php.ini.

Put the following content in it:

memory_limit = 64M

You can replace 64M with the size in of the PHP memory in megabytes you like to have.

After you are ready just upload the php.ini file via FTP in your public_html folder or internal folder you like to apply the PHP memory limit to.

  • 358 Users Found This Useful
Was this answer helpful?

Related Articles

Execution of HTML as PHP

To be able to handle php script in .html file , you need to add the following in the .htaccess...

Where to put CGI files

CGI files will work from any folder on your hosting. However, we advise you to keep them in...

PHP modules installed on the web hosting

Normally the web hosting servers have standard installation of the following PHP modules:...

How to use Apache mod_rewrite

QHoster.com has installed Apache mod_rewrite on all web hosting servers.To enable mod_rewrite, it...

How to turn off register_globals in PHP

In each directory where you want register_global to be turned off, place the following php.ini...