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.

  • 373 Users Found This Useful
Was this answer helpful?

Related Articles

Add your own php.ini file to the crontab command

If you want to use your own php.ini in the implementation of cronjobs, add the following to the...

Can I use short tags in PHP scripts

Yes you can. The settings of PHP (short_open_tag) allow you to use short tags in PHP scripts.

How to do URL redirection

You can do URL forwarding from the web hosting control panel. Once logged in click on Redirects....

How to increase the size of uploaded files in PHP

The standard maximum size of the file that you can upload in PHP is 2MB, but some scripts require...

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...