<?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>Top Web Solutions. Hosting Solutions, Linux, Bash, SSH, Operation Systems. cPanel Control Panel, Fantastico Autoinstaller, Apache Web server, Gentoo Linux &#187; PHP</title>
	<atom:link href="http://www.top-web-solutions.com/cat/php-related-articles/feed" rel="self" type="application/rss+xml" />
	<link>http://www.top-web-solutions.com</link>
	<description>cPanel Control Panel, Fantastico Autoinstaller, Apache Web server, Gentoo Linux</description>
	<lastBuildDate>Fri, 01 May 2009 13:22:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Magento: “Fatal error: Uncaught exception” erorr when trying to access Magento Connect manager</title>
		<link>http://www.top-web-solutions.com/magento-%e2%80%9cfatal-error-uncaught-exception%e2%80%9d-erorr-when-trying-to-access-magento-connect-manager.html</link>
		<comments>http://www.top-web-solutions.com/magento-%e2%80%9cfatal-error-uncaught-exception%e2%80%9d-erorr-when-trying-to-access-magento-connect-manager.html#comments</comments>
		<pubDate>Fri, 01 May 2009 13:22:35 +0000</pubDate>
		<dc:creator>Stan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Hosting related]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.top-web-solutions.com/?p=272</guid>
		<description><![CDATA[That&#8217;s a known bug and is present in Magento since version 1.1.2 and still isn&#8217;t fixed. The solution is quite easy and takes less than 5 minutes :)
Simply edit the following file using cpanel&#8217;s file manager:
app/code/core/Mage/Core/Model/App.php
in it around line 558, you should find the following:
$id = $this-&#62;_currentStore;
which is the culprit. The solution is to chnage [...]]]></description>
		<wfw:commentRss>http://www.top-web-solutions.com/magento-%e2%80%9cfatal-error-uncaught-exception%e2%80%9d-erorr-when-trying-to-access-magento-connect-manager.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento error &#8212; Notice: Undefined index:  0  in app/code/core/Mage/Core/Model/Mysql4/Config.php on line 92</title>
		<link>http://www.top-web-solutions.com/magento-error-notice-undefined-index-0-in-appcodecoremagecoremodelmysql4configphp-on-line-92.html</link>
		<comments>http://www.top-web-solutions.com/magento-error-notice-undefined-index-0-in-appcodecoremagecoremodelmysql4configphp-on-line-92.html#comments</comments>
		<pubDate>Mon, 13 Apr 2009 21:13:49 +0000</pubDate>
		<dc:creator>Stan</dc:creator>
				<category><![CDATA[Hosting related]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips`n`Tricks]]></category>

		<guid isPermaLink="false">http://www.top-web-solutions.com/?p=264</guid>
		<description><![CDATA[This will most likely occur when migrating Magento from one host to another. The fix, while not so obvious and easy t find turned out to be quite easy ;)  During the installation, Magento sets two IDs to 0 in its database. However, when importing the database dump to your new host, MySQL doesn&#8217;t like [...]]]></description>
		<wfw:commentRss>http://www.top-web-solutions.com/magento-error-notice-undefined-index-0-in-appcodecoremagecoremodelmysql4configphp-on-line-92.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Find the full path to a program</title>
		<link>http://www.top-web-solutions.com/find-the-full-path-to-a-program.html</link>
		<comments>http://www.top-web-solutions.com/find-the-full-path-to-a-program.html#comments</comments>
		<pubDate>Thu, 19 Mar 2009 10:59:03 +0000</pubDate>
		<dc:creator>Stan</dc:creator>
				<category><![CDATA[Hosting related]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips`n`Tricks]]></category>
		<category><![CDATA[Web Hosting]]></category>

		<guid isPermaLink="false">http://www.top-web-solutions.com/?p=227</guid>
		<description><![CDATA[Quite often, when you are installing an application on your host, it asks for the full path to a program. Galleries for example, will need the full path to the convert executable of ImageMagick, some e-commerce scripts need the full path to the curl binary, etc. Of course you can always contact your host and [...]]]></description>
		<wfw:commentRss>http://www.top-web-solutions.com/find-the-full-path-to-a-program.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP function test</title>
		<link>http://www.top-web-solutions.com/php-function-test.html</link>
		<comments>http://www.top-web-solutions.com/php-function-test.html#comments</comments>
		<pubDate>Thu, 19 Mar 2009 10:15:13 +0000</pubDate>
		<dc:creator>Stan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips`n`Tricks]]></category>
		<category><![CDATA[Web Hosting]]></category>

		<guid isPermaLink="false">http://www.top-web-solutions.com/?p=217</guid>
		<description><![CDATA[Most hosting companies today, which offer PHP hosting tend to disable certain PHP functions mostly for security reasons. Contacting support to check if a function is available or not can sometimes be really tough. To save you all this trouble, here is a short script, which will tell you if a function is available. In [...]]]></description>
		<wfw:commentRss>http://www.top-web-solutions.com/php-function-test.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add form fields dynamically with JavaScript</title>
		<link>http://www.top-web-solutions.com/add-form-fields-dynamically-with-javascript.html</link>
		<comments>http://www.top-web-solutions.com/add-form-fields-dynamically-with-javascript.html#comments</comments>
		<pubDate>Tue, 03 Mar 2009 01:15:29 +0000</pubDate>
		<dc:creator>Stan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[dynamically]]></category>
		<category><![CDATA[fields]]></category>
		<category><![CDATA[Form]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://top-web-solutions.com/add-form-fields-dynamically-with-javascript/</guid>
		<description><![CDATA[If you have ever used GMail you have most probably already seen this at the attachments page, where you can dynamically add attachment slots without even refreshing the page. You can achieve this effect easily and I will just show you how to do it.
For the purpose of course, we will use JavaScript, so you [...]]]></description>
		<wfw:commentRss>http://www.top-web-solutions.com/add-form-fields-dynamically-with-javascript.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Get the Current Page URL</title>
		<link>http://www.top-web-solutions.com/how-to-get-the-current-page-url.html</link>
		<comments>http://www.top-web-solutions.com/how-to-get-the-current-page-url.html#comments</comments>
		<pubDate>Sun, 01 Mar 2009 16:22:20 +0000</pubDate>
		<dc:creator>Stan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[CURRENT]]></category>
		<category><![CDATA[FUNCTION]]></category>
		<category><![CDATA[GET]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[PAGE]]></category>
		<category><![CDATA[SCRIPT]]></category>
		<category><![CDATA[URL]]></category>

		<guid isPermaLink="false">http://top-web-solutions.com/how-to-get-the-current-page-url/</guid>
		<description><![CDATA[In some cases, you might want to get the current URL of the script that is being executed. I haven&#8217;t yet found a convenient one-line function that is built-in into PHP and thus I&#8217;ve wrote the following function to do it:


 /**
 * Returns the current URL of the script.
 * Usage: $url = cur_page_url();
 [...]]]></description>
		<wfw:commentRss>http://www.top-web-solutions.com/how-to-get-the-current-page-url.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing eAccelerator on Ubuntu</title>
		<link>http://www.top-web-solutions.com/installing-eaccelerator-in-ubuntu.html</link>
		<comments>http://www.top-web-solutions.com/installing-eaccelerator-in-ubuntu.html#comments</comments>
		<pubDate>Tue, 10 Feb 2009 12:58:09 +0000</pubDate>
		<dc:creator>Stan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[eaccelerator]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://futurepages.net/installing-eaccelerator-in-ubuntu/</guid>
		<description><![CDATA[If you have a small server for your own use (such as your personal page) or have a busy server servicing a lot of php requests you might find it a good idea to install some goodies in order to optimize the performance of your machine. A really good start might be installing the eAccelerator.
The [...]]]></description>
		<wfw:commentRss>http://www.top-web-solutions.com/installing-eaccelerator-in-ubuntu.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Checkbox values</title>
		<link>http://www.top-web-solutions.com/php-checkbox-values.html</link>
		<comments>http://www.top-web-solutions.com/php-checkbox-values.html#comments</comments>
		<pubDate>Sat, 24 Jan 2009 01:54:14 +0000</pubDate>
		<dc:creator>Stan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[checkbox]]></category>
		<category><![CDATA[values]]></category>

		<guid isPermaLink="false">http://top-web-solutions.com/php-checkbox-values/</guid>
		<description><![CDATA[This one puzzled me for some time&#8230; may be I&#8217;ve overlooked the php documentation, but I couldn&#8217;t find how to make use of the standard checkbox and return the selected values as an array from a simple form.
In the end, it turned to be easy. Consider that we have the following form:
&#60;html&#62;
&#60;form action=&#8217;somewhere.php&#8217; name=&#8217;form1&#8242; action=&#8217;POST&#8217;&#62;
John [...]]]></description>
		<wfw:commentRss>http://www.top-web-solutions.com/php-checkbox-values.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove the last character of a string</title>
		<link>http://www.top-web-solutions.com/how-to-remove-the-last-character-of-a-string.html</link>
		<comments>http://www.top-web-solutions.com/how-to-remove-the-last-character-of-a-string.html#comments</comments>
		<pubDate>Tue, 20 Jan 2009 16:30:39 +0000</pubDate>
		<dc:creator>Stan</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://top-web-solutions.com/how-to-remove-the-last-character-of-a-string/</guid>
		<description><![CDATA[Remove the last character in PHP
In Perl, the chop function removes the last character in a string, but in PHP it removes trailing white spaces only. To get the same functionality into PHP  you can use the substr_replace() function. For example:
 $string = substr_replace($string,&#8221;",-1);
will remove the last character of $string. You can play with [...]]]></description>
		<wfw:commentRss>http://www.top-web-solutions.com/how-to-remove-the-last-character-of-a-string.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
