<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WoWHost UK &#187; exhausted</title>
	<atom:link href="http://www.wowhost.co.uk/tag/exhausted/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wowhost.co.uk</link>
	<description>01603 490102 Mon-Fri 9am to 9pm</description>
	<lastBuildDate>Mon, 07 Feb 2011 22:24:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Why does my PHP script fail with &#8216;Fatal error: Allowed memory size of 8388608 bytes exhausted&#8217;?</title>
		<link>http://www.wowhost.co.uk/why-does-my-php-script-fail-with-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted.html</link>
		<comments>http://www.wowhost.co.uk/why-does-my-php-script-fail-with-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted.html#comments</comments>
		<pubDate>Wed, 17 Mar 2010 20:12:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Customer How To]]></category>
		<category><![CDATA[Allowed memory size]]></category>
		<category><![CDATA[exhausted]]></category>
		<category><![CDATA[Fatal error]]></category>
		<category><![CDATA[PHP script fail]]></category>
		<category><![CDATA[server memory limit]]></category>

		<guid isPermaLink="false">http://www.wowhost.co.uk/?p=186</guid>
		<description><![CDATA[PHP has a built-in limit on the amount of memory it will allocate. If that limit is reached, the process will exit with this error message. This is usually the result of the PHP script trying to load a large file, such as an image, into memory all at once. While it is better if [...]]]></description>
			<content:encoded><![CDATA[<p>PHP has a built-in limit on the amount of memory it will allocate. If that limit is reached, the process will exit with this error message. This is usually the result of the PHP script trying to load a large file, such as an image, into memory all at once. While it is better if you can arrange for the script not to do such things, it is also possible to increase the memory limit to avoid this problem. To do that, edit (or create in your script&#8217;s folder if it does not exist) the php.ini file with your PHP scripts (create it if it does not exist) and add the following line:<br />
memory_limit=16M</p>
<p>You should replace the &#8217;16&#8242; with whatever value is appropriate. The default is 8M (8 megabytes, the 8388608 bytes from the error message).</p>
<p>If this does not resolve the problem, you can also increase the web server memory limit by editing (or creating in your script&#8217;s folder if it does not exist) the &#8220;.htaccess&#8221; file and adding the following line:<br />
RLimitMem 128000000</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.wowhost.co.uk/why-does-my-php-script-fail-with-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted.html/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Why+does+my+PHP+script+fail+with+%27Fatal+error%3A+Allowed+memory+size+of+8388608+bytes+exhausted%27%3F&amp;link=http://www.wowhost.co.uk/why-does-my-php-script-fail-with-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted.html&amp;notes=PHP%20has%20a%20built-in%20limit%20on%20the%20amount%20of%20memory%20it%20will%20allocate.%20If%20that%20limit%20is%20reached%2C%20the%20process%20will%20exit%20with%20this%20error%20message.%20This%20is%20usually%20the%20result%20of%20the%20PHP%20script%20trying%20to%20load%20a%20large%20file%2C%20such%20as%20an%20image%2C%20into%20memory%20all%20at%20once.%20While%20it%20is%20better%20if%20you%20can%20arrange%20for%20t&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Why+does+my+PHP+script+fail+with+%27Fatal+error%3A+Allowed+memory+size+of+8388608+bytes+exhausted%27%3F&amp;link=http://www.wowhost.co.uk/why-does-my-php-script-fail-with-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted.html&amp;notes=PHP%20has%20a%20built-in%20limit%20on%20the%20amount%20of%20memory%20it%20will%20allocate.%20If%20that%20limit%20is%20reached%2C%20the%20process%20will%20exit%20with%20this%20error%20message.%20This%20is%20usually%20the%20result%20of%20the%20PHP%20script%20trying%20to%20load%20a%20large%20file%2C%20such%20as%20an%20image%2C%20into%20memory%20all%20at%20once.%20While%20it%20is%20better%20if%20you%20can%20arrange%20for%20t&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.shareaholic.com/api/share/?title=Why+does+my+PHP+script+fail+with+%27Fatal+error%3A+Allowed+memory+size+of+8388608+bytes+exhausted%27%3F&amp;link=http://www.wowhost.co.uk/why-does-my-php-script-fail-with-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted.html&amp;notes=PHP%20has%20a%20built-in%20limit%20on%20the%20amount%20of%20memory%20it%20will%20allocate.%20If%20that%20limit%20is%20reached%2C%20the%20process%20will%20exit%20with%20this%20error%20message.%20This%20is%20usually%20the%20result%20of%20the%20PHP%20script%20trying%20to%20load%20a%20large%20file%2C%20such%20as%20an%20image%2C%20into%20memory%20all%20at%20once.%20While%20it%20is%20better%20if%20you%20can%20arrange%20for%20t&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=24&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Why+does+my+PHP+script+fail+with+%27Fatal+error%3A+Allowed+memory+size+of+8388608+bytes+exhausted%27%3F&amp;link=http://www.wowhost.co.uk/why-does-my-php-script-fail-with-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted.html&amp;notes=PHP%20has%20a%20built-in%20limit%20on%20the%20amount%20of%20memory%20it%20will%20allocate.%20If%20that%20limit%20is%20reached%2C%20the%20process%20will%20exit%20with%20this%20error%20message.%20This%20is%20usually%20the%20result%20of%20the%20PHP%20script%20trying%20to%20load%20a%20large%20file%2C%20such%20as%20an%20image%2C%20into%20memory%20all%20at%20once.%20While%20it%20is%20better%20if%20you%20can%20arrange%20for%20t&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Why+does+my+PHP+script+fail+with+%27Fatal+error%3A+Allowed+memory+size+of+8388608+bytes+exhausted%27%3F&amp;link=http://www.wowhost.co.uk/why-does-my-php-script-fail-with-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted.html&amp;notes=PHP%20has%20a%20built-in%20limit%20on%20the%20amount%20of%20memory%20it%20will%20allocate.%20If%20that%20limit%20is%20reached%2C%20the%20process%20will%20exit%20with%20this%20error%20message.%20This%20is%20usually%20the%20result%20of%20the%20PHP%20script%20trying%20to%20load%20a%20large%20file%2C%20such%20as%20an%20image%2C%20into%20memory%20all%20at%20once.%20While%20it%20is%20better%20if%20you%20can%20arrange%20for%20t&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=Why+does+my+PHP+script+fail+with+%27Fatal+error%3A+Allowed+memory+size+of+8388608+bytes+exhausted%27%3F&amp;link=http://www.wowhost.co.uk/why-does-my-php-script-fail-with-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted.html&amp;notes=PHP%20has%20a%20built-in%20limit%20on%20the%20amount%20of%20memory%20it%20will%20allocate.%20If%20that%20limit%20is%20reached%2C%20the%20process%20will%20exit%20with%20this%20error%20message.%20This%20is%20usually%20the%20result%20of%20the%20PHP%20script%20trying%20to%20load%20a%20large%20file%2C%20such%20as%20an%20image%2C%20into%20memory%20all%20at%20once.%20While%20it%20is%20better%20if%20you%20can%20arrange%20for%20t&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.shareaholic.com/api/share/?title=Why+does+my+PHP+script+fail+with+%27Fatal+error%3A+Allowed+memory+size+of+8388608+bytes+exhausted%27%3F&amp;link=http://www.wowhost.co.uk/why-does-my-php-script-fail-with-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted.html&amp;notes=PHP%20has%20a%20built-in%20limit%20on%20the%20amount%20of%20memory%20it%20will%20allocate.%20If%20that%20limit%20is%20reached%2C%20the%20process%20will%20exit%20with%20this%20error%20message.%20This%20is%20usually%20the%20result%20of%20the%20PHP%20script%20trying%20to%20load%20a%20large%20file%2C%20such%20as%20an%20image%2C%20into%20memory%20all%20at%20once.%20While%20it%20is%20better%20if%20you%20can%20arrange%20for%20t&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=4&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Why+does+my+PHP+script+fail+with+%27Fatal+error%3A+Allowed+memory+size+of+8388608+bytes+exhausted%27%3F&amp;link=http://www.wowhost.co.uk/why-does-my-php-script-fail-with-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted.html&amp;notes=PHP%20has%20a%20built-in%20limit%20on%20the%20amount%20of%20memory%20it%20will%20allocate.%20If%20that%20limit%20is%20reached%2C%20the%20process%20will%20exit%20with%20this%20error%20message.%20This%20is%20usually%20the%20result%20of%20the%20PHP%20script%20trying%20to%20load%20a%20large%20file%2C%20such%20as%20an%20image%2C%20into%20memory%20all%20at%20once.%20While%20it%20is%20better%20if%20you%20can%20arrange%20for%20t&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Why+does+my+PHP+script+fail+with+%27Fatal+error%3A+Allowed+memory+size+of+8388608+bytes+exhausted%27%3F&amp;link=http://www.wowhost.co.uk/why-does-my-php-script-fail-with-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted.html&amp;notes=PHP%20has%20a%20built-in%20limit%20on%20the%20amount%20of%20memory%20it%20will%20allocate.%20If%20that%20limit%20is%20reached%2C%20the%20process%20will%20exit%20with%20this%20error%20message.%20This%20is%20usually%20the%20result%20of%20the%20PHP%20script%20trying%20to%20load%20a%20large%20file%2C%20such%20as%20an%20image%2C%20into%20memory%20all%20at%20once.%20While%20it%20is%20better%20if%20you%20can%20arrange%20for%20t&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=Why+does+my+PHP+script+fail+with+%27Fatal+error%3A+Allowed+memory+size+of+8388608+bytes+exhausted%27%3F&amp;link=http://www.wowhost.co.uk/why-does-my-php-script-fail-with-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted.html&amp;notes=PHP%20has%20a%20built-in%20limit%20on%20the%20amount%20of%20memory%20it%20will%20allocate.%20If%20that%20limit%20is%20reached%2C%20the%20process%20will%20exit%20with%20this%20error%20message.%20This%20is%20usually%20the%20result%20of%20the%20PHP%20script%20trying%20to%20load%20a%20large%20file%2C%20such%20as%20an%20image%2C%20into%20memory%20all%20at%20once.%20While%20it%20is%20better%20if%20you%20can%20arrange%20for%20t&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=10&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Why+does+my+PHP+script+fail+with+%27Fatal+error%3A+Allowed+memory+size+of+8388608+bytes+exhausted%27%3F&amp;link=http://www.wowhost.co.uk/why-does-my-php-script-fail-with-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted.html&amp;notes=PHP%20has%20a%20built-in%20limit%20on%20the%20amount%20of%20memory%20it%20will%20allocate.%20If%20that%20limit%20is%20reached%2C%20the%20process%20will%20exit%20with%20this%20error%20message.%20This%20is%20usually%20the%20result%20of%20the%20PHP%20script%20trying%20to%20load%20a%20large%20file%2C%20such%20as%20an%20image%2C%20into%20memory%20all%20at%20once.%20While%20it%20is%20better%20if%20you%20can%20arrange%20for%20t&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.wowhost.co.uk/why-does-my-php-script-fail-with-fatal-error-allowed-memory-size-of-8388608-bytes-exhausted.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

