<?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>Web Hosting Blog From Pixel Internet &#187; php.ini</title>
	<atom:link href="http://www.pixelinternet.co.uk/blog/tag/phpini/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pixelinternet.co.uk/blog</link>
	<description>Web Hosting Blog from Pixel Internet</description>
	<lastBuildDate>Mon, 26 Jul 2010 09:22:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Fatal error: Allowed memory size of 8388608 bytes exhausted</title>
		<link>http://www.pixelinternet.co.uk/blog/42/fatal-error-allowed-memory-size-of-8388608-bytes-exhausted/</link>
		<comments>http://www.pixelinternet.co.uk/blog/42/fatal-error-allowed-memory-size-of-8388608-bytes-exhausted/#comments</comments>
		<pubDate>Sat, 12 Jul 2008 08:04:49 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Problems/Solutions]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php errors]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[web hosting tutorials]]></category>

		<guid isPermaLink="false">http://www.pixelinternet.co.uk/blog/?p=42</guid>
		<description><![CDATA[It todays Web Hosting Tutorial we are going to cover how to change your PHP file upload limit to avoind the following error: &#8216;Fatal error: Allowed memory size of 8388608 bytes exhausted&#8217;? PHP has a built-in limit on the amount of memory it will allocate. If that limit is reached, the process will exit with [...]


Related posts:<ol><li><a href='http://www.pixelinternet.co.uk/blog/40/my-php-script-gives-the-error-call-to-undefined-function-mysql_connect/' rel='bookmark' title='Permanent Link: My PHP script gives the error &#8216;Call to undefined function: mysql_connect()&#8217;'>My PHP script gives the error &#8216;Call to undefined function: mysql_connect()&#8217;</a></li>
<li><a href='http://www.pixelinternet.co.uk/blog/32/how-to-create-a-custom-phpini-file/' rel='bookmark' title='Permanent Link: How to create a custom php.ini file'>How to create a custom php.ini file</a></li>
<li><a href='http://www.pixelinternet.co.uk/blog/116/how-to-fix-internet-explorer-cannot-open-the-internet-site-operation-aborted-error/' rel='bookmark' title='Permanent Link: How to Fix “Internet Explorer Cannot Open the Internet Site- Operation Aborted” Error'>How to Fix “Internet Explorer Cannot Open the Internet Site- Operation Aborted” Error</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.pixelinternet.co.uk%2Fblog%2F42%2Ffatal-error-allowed-memory-size-of-8388608-bytes-exhausted%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.pixelinternet.co.uk%2Fblog%2F42%2Ffatal-error-allowed-memory-size-of-8388608-bytes-exhausted%2F&amp;source=pixelinternet&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>It todays Web Hosting Tutorial we are going to cover how to change your PHP file upload limit to avoind the following error:</p>
<p><strong>&#8216;Fatal error: Allowed memory size of 8388608 bytes exhausted&#8217;?</strong></p>
<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 some to avoid this problem. To do that, edit the php.ini file with your PHP scripts (create it if it does not exist) and add the following line:</p>
<p><strong>memory_limit=16M</strong></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>Thats it! You&#8217;ve just increased your PHP file upload limit. Well done you!</p>
<p>Click here to find out <a title="How to create a custom php.ini file" href="http://www.pixelinternet.co.uk/blog/2008/06/how-to-create-a-custom-phpini-file/">how to create a custom php.ini</a> file.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.pixelinternet.co.uk/blog/42/fatal-error-allowed-memory-size-of-8388608-bytes-exhausted/&amp;title=Fatal+error%3A+Allowed+memory+size+of+8388608+bytes+exhausted+" 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://digg.com/submit?phase=2&amp;url=http://www.pixelinternet.co.uk/blog/42/fatal-error-allowed-memory-size-of-8388608-bytes-exhausted/&amp;title=Fatal+error%3A+Allowed+memory+size+of+8388608+bytes+exhausted+" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.pixelinternet.co.uk/blog/42/fatal-error-allowed-memory-size-of-8388608-bytes-exhausted/&amp;t=Fatal+error%3A+Allowed+memory+size+of+8388608+bytes+exhausted+" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.pixelinternet.co.uk/blog/42/fatal-error-allowed-memory-size-of-8388608-bytes-exhausted/&amp;title=Fatal+error%3A+Allowed+memory+size+of+8388608+bytes+exhausted+" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.pixelinternet.co.uk/blog/42/fatal-error-allowed-memory-size-of-8388608-bytes-exhausted/&amp;title=Fatal+error%3A+Allowed+memory+size+of+8388608+bytes+exhausted+" 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://technorati.com/faves?add=http://www.pixelinternet.co.uk/blog/42/fatal-error-allowed-memory-size-of-8388608-bytes-exhausted/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Fatal+error%3A+Allowed+memory+size+of+8388608+bytes+exhausted++-+http://e7t.us/b97e3a&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://www.pixelinternet.co.uk/blog/40/my-php-script-gives-the-error-call-to-undefined-function-mysql_connect/' rel='bookmark' title='Permanent Link: My PHP script gives the error &#8216;Call to undefined function: mysql_connect()&#8217;'>My PHP script gives the error &#8216;Call to undefined function: mysql_connect()&#8217;</a></li>
<li><a href='http://www.pixelinternet.co.uk/blog/32/how-to-create-a-custom-phpini-file/' rel='bookmark' title='Permanent Link: How to create a custom php.ini file'>How to create a custom php.ini file</a></li>
<li><a href='http://www.pixelinternet.co.uk/blog/116/how-to-fix-internet-explorer-cannot-open-the-internet-site-operation-aborted-error/' rel='bookmark' title='Permanent Link: How to Fix “Internet Explorer Cannot Open the Internet Site- Operation Aborted” Error'>How to Fix “Internet Explorer Cannot Open the Internet Site- Operation Aborted” Error</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.pixelinternet.co.uk/blog/42/fatal-error-allowed-memory-size-of-8388608-bytes-exhausted/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My PHP script gives the error &#8216;Call to undefined function: mysql_connect()&#8217;</title>
		<link>http://www.pixelinternet.co.uk/blog/40/my-php-script-gives-the-error-call-to-undefined-function-mysql_connect/</link>
		<comments>http://www.pixelinternet.co.uk/blog/40/my-php-script-gives-the-error-call-to-undefined-function-mysql_connect/#comments</comments>
		<pubDate>Sat, 12 Jul 2008 07:35:11 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Problems/Solutions]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php errors]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[web hosting tutorials]]></category>

		<guid isPermaLink="false">http://www.pixelinternet.co.uk/blog/?p=40</guid>
		<description><![CDATA[My PHP script gives the error &#8216;Call to undefined function: mysql_connect()&#8217; This is usually due to a faulty php.ini file causing the PHP MySQL functions to be undefined. A custom php.ini file should not need to contain more than a very few lines to override the specific necessary directives. Using a php.ini found on other [...]


Related posts:<ol><li><a href='http://www.pixelinternet.co.uk/blog/42/fatal-error-allowed-memory-size-of-8388608-bytes-exhausted/' rel='bookmark' title='Permanent Link: Fatal error: Allowed memory size of 8388608 bytes exhausted'>Fatal error: Allowed memory size of 8388608 bytes exhausted</a></li>
<li><a href='http://www.pixelinternet.co.uk/blog/37/how-do-i-query-a-mysql-database-from-a-php-script/' rel='bookmark' title='Permanent Link: How do I query a MySQL database from a PHP script?'>How do I query a MySQL database from a PHP script?</a></li>
<li><a href='http://www.pixelinternet.co.uk/blog/32/how-to-create-a-custom-phpini-file/' rel='bookmark' title='Permanent Link: How to create a custom php.ini file'>How to create a custom php.ini file</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.pixelinternet.co.uk%2Fblog%2F40%2Fmy-php-script-gives-the-error-call-to-undefined-function-mysql_connect%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.pixelinternet.co.uk%2Fblog%2F40%2Fmy-php-script-gives-the-error-call-to-undefined-function-mysql_connect%2F&amp;source=pixelinternet&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>My PHP script gives the error &#8216;Call to undefined function: mysql_connect()&#8217;</strong></p>
<p>This is usually due to a faulty <span class="glossary_not_highlighted">php</span>.ini <span class="glossary_not_highlighted">file</span> causing the <span class="glossary_not_highlighted">PHP</span> <span class="glossary_not_highlighted">MySQL</span> functions to be undefined. A custom <span class="glossary_not_highlighted">php</span>.ini <span class="glossary_not_highlighted">file</span> should not need to contain more than a very few lines to override the specific necessary directives. Using a <span class="glossary_not_highlighted">php</span>.ini found on other webservers or examples given on <span class="glossary_not_highlighted">PHP</span>-related <span class="glossary_not_highlighted">websites</span> will likely cause problems such as this.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.pixelinternet.co.uk/blog/40/my-php-script-gives-the-error-call-to-undefined-function-mysql_connect/&amp;title=My+PHP+script+gives+the+error+%27Call+to+undefined+function%3A+mysql_connect%28%29%27" 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://digg.com/submit?phase=2&amp;url=http://www.pixelinternet.co.uk/blog/40/my-php-script-gives-the-error-call-to-undefined-function-mysql_connect/&amp;title=My+PHP+script+gives+the+error+%27Call+to+undefined+function%3A+mysql_connect%28%29%27" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.pixelinternet.co.uk/blog/40/my-php-script-gives-the-error-call-to-undefined-function-mysql_connect/&amp;t=My+PHP+script+gives+the+error+%27Call+to+undefined+function%3A+mysql_connect%28%29%27" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.pixelinternet.co.uk/blog/40/my-php-script-gives-the-error-call-to-undefined-function-mysql_connect/&amp;title=My+PHP+script+gives+the+error+%27Call+to+undefined+function%3A+mysql_connect%28%29%27" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.pixelinternet.co.uk/blog/40/my-php-script-gives-the-error-call-to-undefined-function-mysql_connect/&amp;title=My+PHP+script+gives+the+error+%27Call+to+undefined+function%3A+mysql_connect%28%29%27" 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://technorati.com/faves?add=http://www.pixelinternet.co.uk/blog/40/my-php-script-gives-the-error-call-to-undefined-function-mysql_connect/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=My+PHP+script+gives+the+error+%27Call+to+undefined+function%3A+mysql_connect%28%29%27+-+http://e7t.us/79f585&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://www.pixelinternet.co.uk/blog/42/fatal-error-allowed-memory-size-of-8388608-bytes-exhausted/' rel='bookmark' title='Permanent Link: Fatal error: Allowed memory size of 8388608 bytes exhausted'>Fatal error: Allowed memory size of 8388608 bytes exhausted</a></li>
<li><a href='http://www.pixelinternet.co.uk/blog/37/how-do-i-query-a-mysql-database-from-a-php-script/' rel='bookmark' title='Permanent Link: How do I query a MySQL database from a PHP script?'>How do I query a MySQL database from a PHP script?</a></li>
<li><a href='http://www.pixelinternet.co.uk/blog/32/how-to-create-a-custom-phpini-file/' rel='bookmark' title='Permanent Link: How to create a custom php.ini file'>How to create a custom php.ini file</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.pixelinternet.co.uk/blog/40/my-php-script-gives-the-error-call-to-undefined-function-mysql_connect/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to create a custom php.ini file</title>
		<link>http://www.pixelinternet.co.uk/blog/32/how-to-create-a-custom-phpini-file/</link>
		<comments>http://www.pixelinternet.co.uk/blog/32/how-to-create-a-custom-phpini-file/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 17:11:21 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Hosting Tutorials]]></category>
		<category><![CDATA[custom ini]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[php5]]></category>

		<guid isPermaLink="false">http://www.pixelinternet.co.uk/blog/?p=32</guid>
		<description><![CDATA[There are some variables in the php.ini file that can be overwritten, a common request is how to change the PHP file upload limit. You can do this by creating a custom php.ini file in the directory you want to use (where your script resides). Here is an example; On your computer open a new [...]


Related posts:<ol><li><a href='http://www.pixelinternet.co.uk/blog/42/fatal-error-allowed-memory-size-of-8388608-bytes-exhausted/' rel='bookmark' title='Permanent Link: Fatal error: Allowed memory size of 8388608 bytes exhausted'>Fatal error: Allowed memory size of 8388608 bytes exhausted</a></li>
<li><a href='http://www.pixelinternet.co.uk/blog/170/php5/' rel='bookmark' title='Permanent Link: PHP5'>PHP5</a></li>
<li><a href='http://www.pixelinternet.co.uk/blog/33/setting-register_globals-to-on-in-php/' rel='bookmark' title='Permanent Link: Setting &#8220;register_globals&#8221; to ON in PHP'>Setting &#8220;register_globals&#8221; to ON in PHP</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.pixelinternet.co.uk%2Fblog%2F32%2Fhow-to-create-a-custom-phpini-file%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.pixelinternet.co.uk%2Fblog%2F32%2Fhow-to-create-a-custom-phpini-file%2F&amp;source=pixelinternet&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>There are some variables in the php.ini file that can be overwritten, a common request is how to <strong>change the PHP file upload limit</strong>.</p>
<p>You can do this by creating a <strong>custom php.ini file</strong> in the directory you want to use (where your script resides).</p>
<p>Here is an example;</p>
<p>On your computer open a new document in Notepad, inside enter the command;</p>
<p>upload_max_filesize = 5M<br />
post_max_size = 5M</p>
<p>(this example shows the limit being set to 5MB, you can change this to your required max file/post size.</p>
<p>Then save the file and name it php.ini and upload it to the directory where your scripts reside.</p>
<p>For PHP5, use php5.ini instead of php.ini.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.pixelinternet.co.uk/blog/32/how-to-create-a-custom-phpini-file/&amp;title=How+to+create+a+custom+php.ini+file" 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://digg.com/submit?phase=2&amp;url=http://www.pixelinternet.co.uk/blog/32/how-to-create-a-custom-phpini-file/&amp;title=How+to+create+a+custom+php.ini+file" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.pixelinternet.co.uk/blog/32/how-to-create-a-custom-phpini-file/&amp;t=How+to+create+a+custom+php.ini+file" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.pixelinternet.co.uk/blog/32/how-to-create-a-custom-phpini-file/&amp;title=How+to+create+a+custom+php.ini+file" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.pixelinternet.co.uk/blog/32/how-to-create-a-custom-phpini-file/&amp;title=How+to+create+a+custom+php.ini+file" 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://technorati.com/faves?add=http://www.pixelinternet.co.uk/blog/32/how-to-create-a-custom-phpini-file/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=How+to+create+a+custom+php.ini+file+-+http://e7t.us/4aa90e&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>



<p>Related posts:<ol><li><a href='http://www.pixelinternet.co.uk/blog/42/fatal-error-allowed-memory-size-of-8388608-bytes-exhausted/' rel='bookmark' title='Permanent Link: Fatal error: Allowed memory size of 8388608 bytes exhausted'>Fatal error: Allowed memory size of 8388608 bytes exhausted</a></li>
<li><a href='http://www.pixelinternet.co.uk/blog/170/php5/' rel='bookmark' title='Permanent Link: PHP5'>PHP5</a></li>
<li><a href='http://www.pixelinternet.co.uk/blog/33/setting-register_globals-to-on-in-php/' rel='bookmark' title='Permanent Link: Setting &#8220;register_globals&#8221; to ON in PHP'>Setting &#8220;register_globals&#8221; to ON in PHP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.pixelinternet.co.uk/blog/32/how-to-create-a-custom-phpini-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
