<?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>Quick Web Tutorials</title>
	<atom:link href="http://www.quickwebtutorials.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.quickwebtutorials.com</link>
	<description>Topics focus on web design and tutorials.</description>
	<lastBuildDate>Sun, 18 Sep 2011 04:38:21 +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>How to create a WordPress theme from scratch</title>
		<link>http://www.quickwebtutorials.com/how-to-create-a-wordpress-theme-from-scratch</link>
		<comments>http://www.quickwebtutorials.com/how-to-create-a-wordpress-theme-from-scratch#comments</comments>
		<pubDate>Sun, 18 Sep 2011 04:38:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.quickwebtutorials.com/?p=887</guid>
		<description><![CDATA[Instead of writing a tutorial on how to get you stated in the world of writing a WordPress theme from scratch, I will just give you a set of links to great material you can use. &#160; Theme Development &#8211; WordPress Codex [http://codex.wordpress.org/Theme_Development] You will become familiar with the basis and structure of a theme [...]]]></description>
			<content:encoded><![CDATA[<p>Instead of writing a tutorial on how to get you stated in the world of writing a WordPress theme from scratch, I will just give you a set of links to great material you can use.</p>
<p>&nbsp;</p>
<h4>Theme Development &#8211; WordPress Codex [<a href="http://codex.wordpress.org/Theme_Development">http://codex.wordpress.org/Theme_Development</a>]</h4>
<p>You will become familiar with the basis and structure of a theme</p>
<p>&nbsp;</p>
<h4><a href="http://www.w3schools.com/">http://www.w3schools.com/</a></h4>
<p>Great source of documentation for HTML, CSS, jQuery and more</p>
<p>&nbsp;</p>
<h4>PHP Documentation [<a href="http://us3.php.net/docs.php">http://us3.php.net/docs.php</a>]</h4>
<p>The source of knowledge if you are still not very savvy with PHP</p>
<p>&nbsp;</p>
<h4>WordPress Documentation [<a href="http://codex.wordpress.org/">http://codex.wordpress.org/</a>]</h4>
<p>Similar to the PHP Documentation, this source will answer all your questions related with the APIs that fire up WordPress</p>
<p>&nbsp;</p>
<h4>/wp-content/themes/twentyeleven (and twentyten)</h4>
<p>There is no better documentation than the code, in this case such source of information is the theme than ships together with WordPress and allows you to navigate and find out how concepts and APIs work in a very good sample put together</p>
<p>&nbsp;</p>
<p>So hopefully with this compilation of information you will feel more confident to start working on your own WordPress theme and you will be able to let our creativity drive you towards a great user experience for your users.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quickwebtutorials.com/how-to-create-a-wordpress-theme-from-scratch/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding your own style sheets and javascript files to admin pages in WordPress</title>
		<link>http://www.quickwebtutorials.com/adding-your-own-style-sheets-and-javascript-files-to-admin-pages-in-wordpress</link>
		<comments>http://www.quickwebtutorials.com/adding-your-own-style-sheets-and-javascript-files-to-admin-pages-in-wordpress#comments</comments>
		<pubDate>Sat, 03 Sep 2011 16:35:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.quickwebtutorials.com/?p=898</guid>
		<description><![CDATA[If you have your own theme you will be also providing a Menu page for Admin Options, and consequently you will be linking stylesheets (css documents) as well as script files (most likely you would like to use jQuery). The easiest way to accomplish this is by adding the link and script tags directly on [...]]]></description>
			<content:encoded><![CDATA[<p>If you have your own theme you will be also providing a Menu page for Admin Options, and consequently you will be linking stylesheets (css documents) as well as script files (most likely you would like to use jQuery).</p>
<p>The easiest way to accomplish this is by adding the link and script tags directly on the admin page, however such tags are meant to be inserted in the Head section of the web page not inside the Body section, in order to fix it is required to use the following APIs:</p>
<pre class="codeblock">
wp_register_style    | wp_register_script
wp_enqueue_style     | wp_enqueue_script
</pre>
<p>They need to be used before registering the menu page, this is, you will likely register the admin menu page as follows:</p>
<pre class="codeblock">
add_action('admin_menu', 'qt_admin_panel_register');

/**
 * Register Admin Panel.
 *
 * @access public
 */
function qt_admin_panel_register() {
    add_menu_page(__("QT Theme Admin Options"), __("QT Options"), "manage_options",
        "qt_admin", "qt_admin_page", qt_admin_icon());
}
</pre>
<p>Then you will register and enqueue the needed style sheet and scrip files as follows:</p>
<pre class="codeblock">
add_action('admin_menu', 'qt_admin_panel_register');

/**
 * Register Admin Panel.
 *
 * @access public
 */
function qt_admin_panel_register() {
<strong>    // register the style for the admin page</strong>
<strong>    wp_register_style('admin', get_path_from_stylesheet_dir('admin/style.css'));</strong>
<strong>    wp_enqueue_style('admin'); </strong>

<strong>    //register jquery script </strong>
<strong>    wp_register_script('jquery2', get_path_from_stylesheet_dir('js/jquery.js'));</strong>
<strong>    wp_enqueue_script('jquery2'); </strong>

    // add the admin page
    add_menu_page(__("QT Theme Admin Options"), __("QT Options"), "manage_options",
        "qt_admin", "qt_admin_page", qt_admin_icon());
}
</pre>
<p>Notice that you don&#8217;t need to unregister jQuery before registering the version of the script you want to use.</p>
<p>Have a good day</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quickwebtutorials.com/adding-your-own-style-sheets-and-javascript-files-to-admin-pages-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auditing web pages with Chrome developer tools</title>
		<link>http://www.quickwebtutorials.com/auditing-web-pages-with-chrome-developer-tools</link>
		<comments>http://www.quickwebtutorials.com/auditing-web-pages-with-chrome-developer-tools#comments</comments>
		<pubDate>Sun, 28 Aug 2011 17:53:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.quickwebtutorials.com/?p=980</guid>
		<description><![CDATA[Chrome developer tools has a very cool feature to audit a web page and flag issues that by fixing them will provide your web page with better network utilization and performance, the usage is very simple and the results are really cool. Let&#8217;s try it out in the WordPress dashboard page, to do so we [...]]]></description>
			<content:encoded><![CDATA[<p>Chrome developer tools has a very cool feature to audit a web page and flag issues that by fixing them will provide your web page with better network utilization and performance, the usage is very simple and the results are really cool.</p>
<p>Let&#8217;s try it out in the WordPress dashboard page, to do so we will bring up the tools pane by selecting <strong><em>Settings -&gt; Tools -&gt; Developer Tools</em></strong> or by using the hotkeys <strong><em>&lt;Shift&gt;+&lt;Ctrl&gt;+I</em></strong>. Then we will choose the <em><strong>Audits view</strong></em>, in that view we will make sure we choose <em><strong>&#8220;Reload Page and Audit on Load&#8221;</strong></em>:</p>
<div id="attachment_990" class="wp-caption aligncenter" style="width: 585px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2011/08/chrome-audits-options.png"><img src="http://www.quickwebtutorials.com/wp-content/uploads/2011/08/chrome-audits-options-1024x607.png" alt="Chrome (Developer Tools) Audit Options" title="Chrome (Developer Tools) Audit Options" width="575" height="341" class="size-large wp-image-990" /></a><p class="wp-caption-text">Chrome (Developer Tools) Audit Options</p></div>
<p>Once you click &#8220;Run&#8221; and the page finishes loading, you will get a detailed report of the issues found as shown in the next image, note that some of the resolutions of the issues are not in your control, but you will usually find good information and actionable items you can use to improve your web page.</p>
<div id="attachment_993" class="wp-caption aligncenter" style="width: 585px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2011/08/chrome-audit-results.png"><img src="http://www.quickwebtutorials.com/wp-content/uploads/2011/08/chrome-audit-results-1024x607.png" alt="Chrome (Developer Tools) Audit Results" title="Chrome (Developer Tools) Audit Results" width="575" height="341" class="size-large wp-image-993" /></a><p class="wp-caption-text">Chrome (Developer Tools) Audit Results</p></div>
<p>I hope this will help you having a better optimized web page.<br />
Cheers</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quickwebtutorials.com/auditing-web-pages-with-chrome-developer-tools/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web development essential tools</title>
		<link>http://www.quickwebtutorials.com/web-development-essential-tools</link>
		<comments>http://www.quickwebtutorials.com/web-development-essential-tools#comments</comments>
		<pubDate>Sat, 20 Aug 2011 18:13:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[Free]]></category>
		<category><![CDATA[Html]]></category>

		<guid isPermaLink="false">http://www.quickwebtutorials.com/?p=889</guid>
		<description><![CDATA[Firefox If you do most of your web development work with Firefox, Firebug has to be one of those extensions you cannot miss, it is like the Swiss knife for this browser; I could describe all their features here but you&#8217;d better check it out in their web site: http://getfirebug.com/ And here is a screenshot [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Firefox</strong></p>
<p>If you do most of your web development work with Firefox, Firebug has to be one of those extensions you cannot miss, it is like the Swiss knife for this browser; I could describe all their features here but you&#8217;d better check it out in their web site:</p>
<p><a href="http://getfirebug.com/">http://getfirebug.com/</a></p>
<p>And here is a screenshot of it working on WordPress admin page:</p>
<div id="attachment_946" class="wp-caption aligncenter" style="width: 585px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/firebug.png"><img class="size-large wp-image-946" title="Firebug on Firefox" src="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/firebug-1024x608.png" alt="Firebug on Firefox" width="575" height="341" /></a><p class="wp-caption-text">Firebug on Firefox</p></div>
<p><strong>Chrome</strong></p>
<p>In the other hand if you use Chrome as your main browser, you don&#8217;t need to worry that firebug does not support your favorite browser; Chrome comes with the same set of tools (a handful more features to be honest) out of the box, the good thing about it is that you don&#8217;t need to wait for an update when a new version of Firefox breaks the plugin.</p>
<p>Here is a screenshot of it doing its work:</p>
<div id="attachment_955" class="wp-caption aligncenter" style="width: 585px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/chromium-dev-tools.png"><img class="size-large wp-image-955" title="Chrome developer tools" src="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/chromium-dev-tools-1024x608.png" alt="Chrome developer tools" width="575" height="341" /></a><p class="wp-caption-text">Chrome developer tools</p></div>
<p><strong>Internet Explorer</strong></p>
<p>Internet Explorer 8 also comes with a set of developer tools but in a less integrated environment (as you can see in the following screenshot):</p>
<div id="attachment_959" class="wp-caption aligncenter" style="width: 585px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/iexplore-dev-tools.png"><img class="size-full wp-image-959" title="Internet Explorer developer tools" src="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/iexplore-dev-tools.png" alt="Internet Explorer developer tools" width="575" height="419" /></a><p class="wp-caption-text">Internet Explorer developer tools</p></div>
<p>Anyway if you are used to this browser at least you have some tools to get your work done.</p>
<p><strong>Firebug Lite</strong></p>
<p>Firebug lite is an option that works with all major web browsers, you can check it out in:</p>
<p><a href="http://getfirebug.com/firebuglite">http://getfirebug.com/firebuglite</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quickwebtutorials.com/web-development-essential-tools/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using developer tools with JQuery</title>
		<link>http://www.quickwebtutorials.com/using-developer-tools-with-jquery</link>
		<comments>http://www.quickwebtutorials.com/using-developer-tools-with-jquery#comments</comments>
		<pubDate>Fri, 12 Aug 2011 04:15:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.quickwebtutorials.com/?p=891</guid>
		<description><![CDATA[If you had to work with JQuery, you would know that identifying the elements selected by the query in order to have an insight on what is going on with your script might not be a trivial task, however you can run queries with the developer tools that Chrome offers and also you can achieve [...]]]></description>
			<content:encoded><![CDATA[<p>If you had to work with JQuery, you would know that identifying the elements selected by the query in order to have an insight on what is going on with your script might not be a trivial task, however you can run queries with the developer tools that Chrome offers and also you can achieve the same functionality with Firebug and FireQuery (you can check out the details at <a href="http://firequery.binaryage.com/">http://firequery.binaryage.com/</a>).</p>
<p>Let&#8217;s try a simple example to get you started and to show you what you can get out of it, we will use the WordPress options page from our theme we use for this site, we will also use Firebug by now and we will show you at the end the same results with Chrome and its integrated development tools (the flow is really the same); the page we are interested in looks like this:</p>
<div id="attachment_968" class="wp-caption aligncenter" style="width: 585px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/qt-options-page.png"><img class="size-large wp-image-968" title="QuickWeb Tutorials options page for WordPress theme" src="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/qt-options-page-1024x608.png" alt="QuickWeb Tutorials options page for WordPress theme" width="575" height="341" /></a><p class="wp-caption-text">QuickWeb Tutorials options page for WordPress theme</p></div>
<p>Then we will inspect the panel area bellow the tabs, that are the HTML divisions we want to select (in our case to make visible only the one that the user selects with images we placed as tabs), we can now identify the container class name as you can see in the following image:</p>
<div id="attachment_972" class="wp-caption aligncenter" style="width: 585px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/quick-web-qt-panel.png"><img class="size-large wp-image-972" title="Container 'qt-panel' selected with Firebug" src="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/quick-web-qt-panel-1024x608.png" alt="Container 'qt-panel' selected with Firebug" width="575" height="341" /></a><p class="wp-caption-text">Container &#39;qt-panel&#39; selected with Firebug</p></div>
<p>Once we have that we can now move to the Console view in Firebug and type the query to select the container &#8216;qt-panel&#8217; (if you are new to JQuery do note that you need to enclose your query in quotes to get it to work, it is a string that represents the query to perform not a selection that works with JavaScript objects), as you can see in the next image, we will try first to select it just by its class name without results</p>
<p class="codeblock">$(&#8216;qt-panel&#8217;)</p>
<p>After that we will attempt to select the division with that class name, our query will look then like:</p>
<p class="codeblock">$(&#8216;div.qt-panel&#8217;)</p>
<p> And if you mouse over the results of the query you can actually see the region of the page that the result is selecting:</p>
<div id="attachment_974" class="wp-caption aligncenter" style="width: 585px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/quick-web-qt-panel-selection.png"><img class="size-large wp-image-974" title="Queries to select 'qt-panel' with FireQuery" src="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/quick-web-qt-panel-selection-1024x608.png" alt="Queries to select 'qt-panel' with FireQuery" width="575" height="341" /></a><p class="wp-caption-text">Queries to select &#39;qt-panel&#39; with FireQuery</p></div>
<p>Finally we will select the divisions we are interested in using the query</p>
<p class="codeblock">$(&#8216;div.qt-panel &gt; div&#8217;)</p>
<p>You can see in the next image the three elements that are selected by the query and you can even bring up the definitions of the hidden divisions on the HTML or DOM view</p>
<div id="attachment_975" class="wp-caption aligncenter" style="width: 585px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/quick-web-selection-inspect.png"><img class="size-large wp-image-975" title="Inspecting selected elements with Firebug and FireQuery" src="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/quick-web-selection-inspect-1024x608.png" alt="Inspecting selected elements with Firebug and FireQuery" width="575" height="341" /></a><p class="wp-caption-text">Inspecting selected elements with Firebug and FireQuery</p></div>
<p>In Chrome you will see something very similar but with a richer view of the elements selected by your query</p>
<div id="attachment_976" class="wp-caption aligncenter" style="width: 585px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/quick-web-selections-chrome.png"><img class="size-large wp-image-976" title="Inspecting selected elements with Chrome developer tools" src="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/quick-web-selections-chrome-1024x607.png" alt="Inspecting selected elements with Chrome developer tools" width="575" height="341" /></a><p class="wp-caption-text">Inspecting selected elements with Chrome developer tools</p></div>
<p>I hope this will get you started on using these development tools to work with JQuery and create rich experiences in your sites.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quickwebtutorials.com/using-developer-tools-with-jquery/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling WordPress debugging mode</title>
		<link>http://www.quickwebtutorials.com/enabling-wordpress-debugging-mode</link>
		<comments>http://www.quickwebtutorials.com/enabling-wordpress-debugging-mode#comments</comments>
		<pubDate>Sat, 30 Jul 2011 18:46:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.quickwebtutorials.com/?p=893</guid>
		<description><![CDATA[If you are starting with your own WordPress theme, plugin or widget, or simply you are having trouble in your site after you added the latest of them, you should know about the debug option in WordPress, it enables notifications to be printed out in your web page allowing to track subtle issues with your [...]]]></description>
			<content:encoded><![CDATA[<p>If you are starting with your own WordPress theme, plugin or widget, or simply you are having trouble in your site after you added the latest of them, you should know about the debug option in WordPress, it enables notifications to be printed out in your web page allowing to track subtle issues with your layers, css or functionality.</p>
<p>To enable the option you need to edit <strong><em>wp-config.php</em></strong> located in the root WordPress installation directory, you will find something like this:</p>
<pre>/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 */
define('WP_DEBUG', false);</pre>
<p>You only need to change the value to <em>true</em>, save the file and reload the web page in your browser, you will find that now you can see something like this:</p>
<div id="attachment_918" class="wp-caption aligncenter" style="width: 818px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/wordpress-notice1.png"><img class="size-full wp-image-919" title="Wordpress debugging mode" src="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/wordpress-notice1.png" alt="Wordpress debugging mode" width="808" height="436" /></a><p class="wp-caption-text">Wordpress debugging mode</p></div>
<p>Or like this:</p>
<div id="attachment_932" class="wp-caption aligncenter" style="width: 613px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/wordpress-notice2.png"><img class="size-full wp-image-932" title="Wordpress debugging mode" src="http://www.quickwebtutorials.com/wp-content/uploads/2011/07/wordpress-notice2.png" alt="Wordpress debugging mode" width="603" height="316" /></a><p class="wp-caption-text">Wordpress debugging mode</p></div>
<p>Now you will have the first clue on how to fix your site, usually most of the issues are related to not checking for variables to be set, but it can save you a lot of time while you are developing a theme and something got really wrong and your page is just all blank, believe me.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quickwebtutorials.com/enabling-wordpress-debugging-mode/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL conection timeout issues using PHP in Windows</title>
		<link>http://www.quickwebtutorials.com/mysql-connection-timeout-issues-using-php-in-windows</link>
		<comments>http://www.quickwebtutorials.com/mysql-connection-timeout-issues-using-php-in-windows#comments</comments>
		<pubDate>Mon, 09 Aug 2010 09:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Web Servers]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.quickwebtutorials.com/?p=870</guid>
		<description><![CDATA[You spent quite some time setting up your environment in Windows by installing the full WAMP (Windows + Apache + MySQL + PHP) stack, and you made sure that: Apache server is running and loading &#8220;plain&#8221; html files, Simple PHP files are loaded correctly You can access your MyQL database from the command line Your [...]]]></description>
			<content:encoded><![CDATA[<p>You spent quite some time setting up your environment in Windows by installing the full <em><strong>WAMP (Windows + Apache + MySQL + PHP)</strong></em> stack, and you made sure that:</p>
<ul>
<li>Apache server is running and loading &#8220;plain&#8221; html files,</li>
<li>Simple PHP files are loaded correctly</li>
<li>You can access your MyQL database from the command line</li>
<li>Your firewall is not interfering with you</li>
</ul>
<p>But when you try to connect to the local MySQL server using PHP with some code similar to:</p>
<pre class="codeblock">$link = <em><strong>mysql_connect('localhost', </strong></em>root_user', 'user_pwd')
 or die('Could not connect: ' . mysql_error());
 echo 'Connected successfully';</pre>
<p>Your request just times out with the following error:</p>
<pre>Could not connect: A connection attempt failed because the connected party did not
properly respond after a period of time, or established connection failed because
connected host has failed to respond.
</pre>
<p>You might want to make sure that your <em><strong>hosts</strong></em> file (yeah Windows has one of those too) has the <em><strong>localhost</strong></em> name resolution entry un-commented, the file is usually located into <em><strong>%windir%\system32\drivers\etc\hosts</strong></em> (the path might vary if you have earlier versions of Windows than WinXP).</p>
<p>Open the file for edit and make sure it contains something similar to:</p>
<pre class="codeblock"># localhost name resolution is handled within DNS itself.
     127.0.0.1       localhost
</pre>
<p>Note how the entry for the <em><strong>localhost</strong></em> is not commented. Once you un-comment that line and saved the file, try again loading your page, it should work just fine this time!</p>
<p>You will find the same issue if you are trying to connect to the server by using the <em><strong>localhost IP address 127.0.0.1</strong></em>, in that case you also need to fix your <em><strong>hosts</strong></em> file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quickwebtutorials.com/mysql-connection-timeout-issues-using-php-in-windows/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to debug “The requested operation has failed” while starting Apache after installing PHP in Windows</title>
		<link>http://www.quickwebtutorials.com/how-to-debug-the-requested-operation-has-failed-while-starting-apache-after-installing-php-in-windows</link>
		<comments>http://www.quickwebtutorials.com/how-to-debug-the-requested-operation-has-failed-while-starting-apache-after-installing-php-in-windows#comments</comments>
		<pubDate>Sun, 08 Aug 2010 22:36:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Web Servers]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.quickwebtutorials.com/?p=852</guid>
		<description><![CDATA[Does this sound like you? You spent quite some time trying to install PHP with Apache HTTP Server on Windows, after you finished configuring PHP you are ready to restart your Apache service and start typing some PHP code in your web pages; but what you find out is that you are facing the following [...]]]></description>
			<content:encoded><![CDATA[<p>Does this sound like you?</p>
<p>You spent quite some time trying to install PHP with Apache HTTP Server on Windows, after you finished configuring PHP you are ready to restart your Apache service and start typing some PHP code in your web pages; but what you find out is that you are facing the following error:</p>
<div id="attachment_853" class="wp-caption aligncenter" style="width: 547px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2010/08/apache_request_failed_error.jpg"><img class="size-full wp-image-853" title="The requested operation has failed - Apache+PHP" src="http://www.quickwebtutorials.com/wp-content/uploads/2010/08/apache_request_failed_error.jpg" alt="The requested operation has failed - Apache+PHP" width="537" height="342" /></a><p class="wp-caption-text">The requested operation has failed! (Apache + PHP)</p></div>
<p>Then keep reading (we might be able to help you):</p>
<p>The first thing to do is to make sure there&#8217;s no firewall blocking the Apache service and your configuration file <em><strong>httpd.conf</strong></em> is correct containing lines similar to this:</p>
<pre class="codeblock">#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
AddHandler application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/PHP"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL</pre>
<p>Next we&#8217;ll look at the Apache server logs (located in <em><strong>&lt;apache install dir&gt;\logs</strong></em>), we are particularly interested in <em><strong>error.log</strong></em>, however in this case the log does not say much (the bottom of the log looks like the following):</p>
<pre class="codeblock">[Sun Aug 08 11:38:20 2010] [error] [client 127.0.0.1] File does not exist:
 C:/Apache2.2/htdocs/favicon.ico
[Sun Aug 08 11:38:20 2010] [error] [client 127.0.0.1] File does not exist:
 C:/Apache2.2/htdocs/Program Files (x86)
[Sun Aug 08 11:38:20 2010] [error] [client 127.0.0.1] File does not exist:
 C:/Apache2.2/htdocs/favicon.ico</pre>
<p>Not much of a help right?, next step to try out is try to start the service from the command line and dial up the verbosity of the logging, to do so we will use the following command from the bin path of the Apache installation:</p>
<pre class="codeblock"># &lt;apache install dir&gt;\bin\httpd.exe -e debug</pre>
<p>You can look at the <a href="http://httpd.apache.org/docs/2.0/mod/core.html">Apache documentation</a> to get a better description of the command arguments you can pass, but what we are interested is if we can get some error that pops up, something like:</p>
<div id="attachment_864" class="wp-caption aligncenter" style="width: 507px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2010/08/httpd_missing_dll.jpg"><img class="size-full wp-image-864" title="httpd.exe - The program can't start because OCI.dll is missing from your computer" src="http://www.quickwebtutorials.com/wp-content/uploads/2010/08/httpd_missing_dll.jpg" alt="httpd.exe - The program can't start because OCI.dll is missing from your computer" width="497" height="171" /></a><p class="wp-caption-text">httpd.exe - The program can&#39;t start because OCI.dll is missing from your computer</p></div>
<p>Now we are getting somewhere, you can search a bit on what the missing dll is or which application deploys it, in this case <em><strong>OCI.dll</strong></em> is a Oracle client side dll which seems that maybe one of the PHP modules requires it (perhaps a module related with Oracle DB interaction). If we open up the <em><strong>&lt;php install dir&gt;\php.ini</strong></em> file to look at the modules we are trying to load during start up we might have some more clues (we will run a command to find all the appearences in the file matching the name of our dll):</p>
<pre class="codeblock"><em><strong># findstr /pisc:oci "C:\PHP\php.ini"</strong></em>
C:\PHP\php.ini:[OCI8]
.....
<span style="color: #ff6600;">C:\PHP\php.ini:[PHP_OCI8]
C:\PHP\php.ini:extension=php_oci8.dll
C:\PHP\php.ini:[PHP_OCI8_11G]
C:\PHP\php.ini:extension=php_oci8_11g.dll
C:\PHP\php.ini:[PHP_PDO_OCI]
C:\PHP\php.ini:extension=php_pdo_oci.dll</span></pre>
<p>If you take a look at the lines in red we have several extensions that might need that file to load correctly, you have two options at this point:</p>
<ol>
<li>make sure you installed the application deploying the missing file correctly</li>
<li>removing the module for being loaded into our Apache server</li>
</ol>
<p>In this example (and we don&#8217;t care about that module anyway because we are using MySQL) we will just comment out the lines in the php.ini file that load those modules. After doing that we will be able to start up the Apache server properly by using the <em><strong>Apache Service monitor</strong></em> or by typing the command:</p>
<pre class="codeblock"># httpd -k start</pre>
<p>Now you are ready to go to start writing some PHP code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quickwebtutorials.com/how-to-debug-the-requested-operation-has-failed-while-starting-apache-after-installing-php-in-windows/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Inspirational Ads</title>
		<link>http://www.quickwebtutorials.com/inspirational-ads</link>
		<comments>http://www.quickwebtutorials.com/inspirational-ads#comments</comments>
		<pubDate>Sun, 01 Aug 2010 13:00:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://www.quickwebtutorials.com/?p=792</guid>
		<description><![CDATA[OMAX:Wide Angle Lenses Enough Already of Junk Food &#8211; Jungle Juice The Worlds Quietest Lawnmower &#8211; Gardena See How Easy Feeding The Hungry Can be? &#8211; Feed SA Fetus &#8211; Alfa Romeo The moment lasts a second. The legend lasts forever. Write the future &#8211; Nike Eraser USB Stick &#8211; Alzheimer&#8217;s New Zealand: Brain Teaser [...]]]></description>
			<content:encoded><![CDATA[<h3 class="title">OMAX:Wide Angle Lenses</h3>
<p><a href="http://adsoftheworld.com/media/print/omax_lenses_pigeons" target="_blank"><img class="aligncenter size-full wp-image-794" title="omax" src="http://www.quickwebtutorials.com/wp-content/uploads/2010/07/omax.jpg" alt="" width="558" height="350" /></a></p>
<h3 class="title">Enough Already of Junk Food &#8211; Jungle Juice</h3>
<p><a href="http://adsoftheworld.com/media/ambient/jungle_juice_ca%C3%A7amba_3" target="_blank"><img class="aligncenter size-full wp-image-802" title="enough-of-junk-food" src="http://www.quickwebtutorials.com/wp-content/uploads/2010/07/enough-of-junk-food.jpg" alt="" width="558" height="350" /></a></p>
<h3 class="title">The Worlds Quietest Lawnmower &#8211; Gardena</h3>
<p><a href="http://adsoftheworld.com/media/print/gardena_quiet" target="_blank"><img class="aligncenter size-full wp-image-803" title="gardena" src="http://www.quickwebtutorials.com/wp-content/uploads/2010/07/gardena.jpg" alt="" width="558" height="350" /></a></p>
<h3 class="title">See How Easy Feeding The Hungry Can be? &#8211; Feed SA</h3>
<p><a href="http://adsoftheworld.com/media/ambient/feed_sa_trolley" target="_blank"><img class="aligncenter size-full wp-image-806" title="feed" src="http://www.quickwebtutorials.com/wp-content/uploads/2010/07/feed.jpg" alt="" width="558" height="350" /></a></p>
<h3 class="title">Fetus &#8211; Alfa Romeo</h3>
<p><a href="http://adsoftheworld.com/media/print/alfa_romeo_foetus" target="_blank"><img class="aligncenter size-full wp-image-815" title="alfa" src="http://www.quickwebtutorials.com/wp-content/uploads/2010/07/alfa.jpg" alt="" width="558" height="350" /></a><BR></p>
<h3 class="title">The moment lasts a second. The legend lasts forever.<br />
Write the future &#8211; Nike</h3>
<p><a href="http://adsoftheworld.com/media/outdoor/nike_football_write_the_future_ronaldo" target="_blank"><img class="aligncenter size-full wp-image-818" title="nike" src="http://www.quickwebtutorials.com/wp-content/uploads/2010/07/nike.jpg" alt="" width="558" height="284" /></a><BR></p>
<h3 class="title">Eraser USB Stick &#8211; Alzheimer&#8217;s New Zealand: </h3>
<p><a href="http://adsoftheworld.com/media/dm/alzheimers_new_zealand_eraser_usb_stick" target="_blank"><img src="http://www.quickwebtutorials.com/wp-content/uploads/2010/07/memories.jpg" alt="" title="memories" width="558" height="350" class="aligncenter size-full wp-image-823" /></a><BR></p>
<h3 class="title">Brain Teaser &#8211; Nintendo </h3>
<p><a href="http://adsoftheworld.com/media/ambient/nintendo_dsi_brain_teaser" target="_blank"><img src="http://www.quickwebtutorials.com/wp-content/uploads/2010/08/n5ntend6.jpg" alt="" title="n5ntend6" width="558" height="350" class="aligncenter size-full wp-image-831" /></a><BR><br />
<h3 class="title"> Balloon &#8211; Tiji TV<br />
<h3>
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/MCVfijcl2Q0&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/MCVfijcl2Q0&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object><BR></p>
<h3 class="title">Dare. Change. </h3>
<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/BI_HOPqcRFA&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/BI_HOPqcRFA&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.quickwebtutorials.com/inspirational-ads/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing WordPress on a Web server</title>
		<link>http://www.quickwebtutorials.com/installing-wordpress-on-a-web-server</link>
		<comments>http://www.quickwebtutorials.com/installing-wordpress-on-a-web-server#comments</comments>
		<pubDate>Sat, 31 Jul 2010 09:00:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Servers]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Web server]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.quickwebtutorials.com/?p=489</guid>
		<description><![CDATA[In case you have your own Web server (you don&#8217;t hired a hosting service, or even if you did) or you just want to have a local installation of WordPress for easy development of themes or plug-ins, this post will guide you to the process of setting up WordPress on your very own web server. [...]]]></description>
			<content:encoded><![CDATA[<p>In case you have your own Web server (you don&#8217;t hired a hosting service, or even if you did) or you just want to have a local installation of WordPress for easy development of themes or plug-ins, this post will guide you to the process of setting up WordPress on your very own web server.</p>
<p>We will take as a base our LAMP (Linux-Apache-MySQL-PHP) stack that we just finished installing (<a href="http://www.quickwebtutorials.com/getting-started-with-apache-php-mysql-on-linux-lamp">see post</a>).</p>
<p>The first step is to download the latest sources of WordPress from <a href="http://wordpress.org/download/">http://wordpress.org/download/</a></p>
<p>Then you need to extract the contents of the compressed file into your web server&#8217;s <em><strong>document root directory,</strong></em> you can use a set of commands similar to:</p>
<pre class="codeblock"># cd &lt;DocumentRoot path&gt;</pre>
<pre># tar -xvzf &lt;path to downloaded file&gt;/wordpress-3.0.tar.gz</pre>
<p>That will leave you with a <em><strong>wordpress</strong></em> directory containing all the files. It will also mean that your blog&#8217;s root location will be: <em><strong>http://localhost/wordpress</strong></em>. if you want it to be in the root you just need to make sure the files get extracted into the <strong><em>DocumentRoot</em></strong> path</p>
<p>The next step is to create the database, we will use phpMyAdmin (<a href="http://www.quickwebtutorials.com/how-to-install-and-configure-phpmyadmin-2">see installation instructions</a>) for that purpose, we will perform the following actions:</p>
<ul>
<li>Create a database named &#8220;wordpress&#8221; for example</li>
</ul>
<div id="attachment_492" class="wp-caption aligncenter" style="width: 562px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2010/07/create_wordpress_db.jpg"><img class="size-full wp-image-492" title="Create WordPress database" src="http://www.quickwebtutorials.com/wp-content/uploads/2010/07/create_wordpress_db.jpg" alt="Create WordPress database" width="552" height="376" /></a><p class="wp-caption-text">Create WordPress database with phpMyAdmin</p></div>
<ul>
<li> Once the database is created, you can go to the <em><strong>Privileges</strong></em> tab inside the database page (you can see if you have a database selected if you see something like <em><strong>localhost -&gt; wordpress</strong></em> at the top of phpMyAdmin web page) and click in &#8220;<em><strong>Add a new User</strong></em>&#8220;, make sure you &#8216;<em><strong>Grant all privileges on database &#8220;wordpress&#8221;</strong></em>&#8216; and you check all the &#8216;<em><strong>Global privileges</strong></em>&#8216;:</li>
</ul>
<div id="attachment_498" class="wp-caption aligncenter" style="width: 561px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2010/07/create-wordpress-user-db2.jpg"><img class="size-full wp-image-498" title="Create WordPress database User" src="http://www.quickwebtutorials.com/wp-content/uploads/2010/07/create-wordpress-user-db2.jpg" alt="Create WordPress database User" width="551" height="505" /></a><p class="wp-caption-text">Create WordPress database User</p></div>
<p>(In my case I&#8217;ve chosen to connect only from localhost as I will be using the installation for local development)</p>
<ul>
<li>Next step we need add the database information to the WordPress configuration file, to do so we will rename the file <em><strong>wp-config-sample.php</strong></em> under <em><strong>&lt;DocumentRoot path&gt;/wordpress</strong></em></li>
</ul>
<pre class="codeblock" style="padding-left: 30px;"># mv wp-config-sample.php wp-config.php
</pre>
<p style="padding-left: 30px;">Then we will open the file for edit and change the following database information: <em>DB_NAME, DB_USER, DB_PASSWORD, DB_HOST, DB_CHARSET, DB_COLLATE</em>:</p>
<div id="attachment_500" class="wp-caption aligncenter" style="width: 560px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2010/07/define-db-information-wordpress.jpg"><img class="size-full wp-image-500" title="Database information WordPress configuration file" src="http://www.quickwebtutorials.com/wp-content/uploads/2010/07/define-db-information-wordpress.jpg" alt="Database information WordPress configuration file" width="550" height="310" /></a><p class="wp-caption-text">Database information WordPress configuration file</p></div>
<p style="padding-left: 30px;">You can find out the charset and collate values by runing the following query inside phpMyAdmin :</p>
<pre class="codeblock" style="padding-left: 30px;">mysql&gt; SHOW CREATE DATABASE wordpress</pre>
<p style="padding-left: 30px;">NOTE: You might want to leave the <em><strong>charset</strong></em> to the default <strong><em>UTF8</em></strong> which is a good option for almost any language</p>
<p style="padding-left: 30px;">NOTE: you might want to leave the <em><strong>collate</strong></em> value to empty (&#8221;) if you want MySQL to detect this value for you</p>
<ul>
<li>For the next step we will run the install script which will be located in: <em><strong>http://localhost/wordpress/wp-admin/install.php</strong></em></li>
</ul>
<div id="attachment_504" class="wp-caption aligncenter" style="width: 561px"><a href="http://www.quickwebtutorials.com/wp-content/uploads/2010/07/wordpress-install-script.jpg"><img class="size-full wp-image-504" title="WordPress installation script web page" src="http://www.quickwebtutorials.com/wp-content/uploads/2010/07/wordpress-install-script.jpg" alt="WordPress installation script web page" width="551" height="390" /></a><p class="wp-caption-text">WordPress installation script web page</p></div>
<p>And&#8230; that&#8217;s it, once the installation script is done you will be presented with a web page that displays your generated password, now you can log in into your local <em>WordPress</em> by going <em><strong>to http://localhost/wordpress/wp-admin</strong></em></p>
<p>Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.quickwebtutorials.com/installing-wordpress-on-a-web-server/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

