<?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>bulldoggie studio&#039;s blog &#187; XAMPP</title>
	<atom:link href="http://bulldoggie.cn/blog/tag/xampp/feed/" rel="self" type="application/rss+xml" />
	<link>http://bulldoggie.cn/blog</link>
	<description></description>
	<lastBuildDate>Thu, 16 Sep 2010 06:00:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>用xampp在本地搭建WordPress</title>
		<link>http://bulldoggie.cn/blog/2009/12/15/%e7%94%a8xampp%e5%9c%a8%e6%9c%ac%e5%9c%b0%e6%90%ad%e5%bb%bawordpress/</link>
		<comments>http://bulldoggie.cn/blog/2009/12/15/%e7%94%a8xampp%e5%9c%a8%e6%9c%ac%e5%9c%b0%e6%90%ad%e5%bb%bawordpress/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 08:21:18 +0000</pubDate>
		<dc:creator>classiclori</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[XAMPP]]></category>

		<guid isPermaLink="false">http://bulldoggie.cn/blog/?p=111</guid>
		<description><![CDATA[<p>首先，下载<a href="http://www.apachefriends.org/en/xampp-windows.html" target="_blank">最新的xampp lite</a>（没必要用完整版的，对于wordpress来说lite版就足够了。官网上提供了两种格式下载，ZIP格式的是安装版，EXE格式的是自解压版，我这里选择了小得多的EXE，其实内容是一样的。</p><p>然后就是安装了，先解压到一个目录，我直接安装到了D盘根目录。解压后在D盘下就多出了一个xampplite的文件夹。</p><p>进入文件夹，执行名为“setup_xampp” 的批处理文件（后缀为.bat)，成功后按任意键关闭窗口。</p><p> <span class='read-more'><a href='http://bulldoggie.cn/blog/2009/12/15/%e7%94%a8xampp%e5%9c%a8%e6%9c%ac%e5%9c%b0%e6%90%ad%e5%bb%bawordpress/'>[Read More…]</a></span></p><div class="clear-float"></div>
		]]></description>
			<content:encoded><![CDATA[<div>
<p>首先，下载<a href="http://www.apachefriends.org/en/xampp-windows.html" target="_blank">最新的xampp lite</a>（没必要用完整版的，对于wordpress来说lite版就足够了。官网上提供了两种格式下载，ZIP格式的是安装版，EXE格式的是自解压版，我这里选择了小得多的EXE，其实内容是一样的。</p>
<p>然后就是安装了，先解压到一个目录，我直接安装到了D盘根目录。解压后在D盘下就多出了一个xampplite的文件夹。</p>
<p>进入文件夹，执行名为“setup_xampp” 的批处理文件（后缀为.bat)，成功后按任意键关闭窗口。</p>
<p><img title="xampp_install_1.png" src="http://photo1.yupoo.com/20070226/190357_153882543.jpg" border="0" alt="xampp_install_1.png" width="339" height="210" /></p>
<p><span id="more-111"></span></p>
<p>执行“xampp-control.exe”，分别点击Apache和MySql后的Start，看到如下状态后即说明成功。</p>
<p><img title="xampp_install_2.png" src="http://photo1.yupoo.com/20070226/190357_1575491833.jpg" border="0" alt="xampp_install_2.png" width="344" height="177" /></p>
<p>打开一个浏览器，比如<a href="http://www.mozilla.com/firefox/" target="_blank">firefox</a>，在地址栏输入“http://localhost/xampp/splash.php”后回车，选择最后的“Chinese”，即可进入Xampp的欢迎页面了。这以后只要在地址栏输入“http://localhost”回车就能来到这个页面了。</p>
<p><img src="http://lucifr.com/wp-content/uploads/2006/08/1.jpg" alt="" /></p>
<p>接下来要建立一个数据库：点击欢迎页面左栏工具下的“phpMyAdmin” ，创建一个名为wordpress的新数据库，设置如下图：</p>
<p><img title="xampp_install_4.png" src="http://photo1.yupoo.com/20070226/190359_1920389395.jpg" border="0" alt="xampp_install_4.png" width="425" height="49" /><br />
下载<a href="http://lucifr.com/2006/07/30/wordpress-204-upgrade/">WordPress2.0.4</a>并解压。用记事本等编辑程序打开“wp-config-sample.php”，将其中的设置做如下修改，再另存为“wp-config.php”。</p>
<p><img title="xampp_install_6.png" src="http://photo1.yupoo.com/20070226/190653_877182449_cjuaxhtz.jpg" border="0" alt="xampp_install_6.png" width="395" height="51" /></p>
<p>接下来把整个wordpress文件夹复制到安装目录下的“htdocs”文件夹中，以我的情况就是在“D:xampplitehtdocs” 中，完成后的文件树如下：</p>
<p><img title="xampp_install_5.png" src="http://photo1.yupoo.com/20070226/190359_1500211093.jpg" border="0" alt="xampp_install_5.png" width="203" height="233" /></p>
<p>最后的一步就是在浏览器中输入“http://localhost/wordpress/wp-admin/install.php”然后回车了，怎么样，是不是很熟悉的画面？</p></div>
<p><!-- PHP 5.x --></p>


<p>Related posts:<ol><li><a href='http://bulldoggie.cn/blog/2009/12/12/starting-index-php/' rel='bookmark' title='wp theme tut：#3 Starting Index.php'>wp theme tut：#3 Starting Index.php</a></li>
<li><a href='http://bulldoggie.cn/blog/2009/12/12/top-50-wordpress-tutorials/' rel='bookmark' title='Top 50 WordPress Tutorials'>Top 50 WordPress Tutorials</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bulldoggie.cn/blog/2009/12/15/%e7%94%a8xampp%e5%9c%a8%e6%9c%ac%e5%9c%b0%e6%90%ad%e5%bb%bawordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wp theme tut：#3 Starting Index.php</title>
		<link>http://bulldoggie.cn/blog/2009/12/12/starting-index-php/</link>
		<comments>http://bulldoggie.cn/blog/2009/12/12/starting-index-php/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 05:38:06 +0000</pubDate>
		<dc:creator>classiclori</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[XAMPP]]></category>

		<guid isPermaLink="false">http://bulldoggie.cn/blog/?p=89</guid>
		<description><![CDATA[<p>Starting Index.php is the third lesson of my <a href="http://www.wpdesigner.com/2007/02/19/so-you-want-to-create-wordpress-themes-huh/">WordPress theme tutorial series</a>. If you haven’t read lesson <a href="http://www.wpdesigner.com/2007/02/21/wp-theme-lesson-1-intro/">one</a> and <a href="http://www.wpdesigner.com/2007/02/21/wp-theme-lesson-2-template-files-and-templates/">two</a>, I’d suggest you read them. Otherwise, you will not have a clue of what I’ll show you in this lesson.</p><p>It’s time to stop reading and start creating your WordPress Theme. In this lesson, you’ll get your hands dirty with some WordPress codes. This is the part where you really need a <a href="http://geeksaresexy.blogspot.com/2006/06/installing-wordpress-locally-under.html">WordPress blog installed on your computer</a>, not an online blog because offline is more convenient.</p><p> <span class='read-more'><a href='http://bulldoggie.cn/blog/2009/12/12/starting-index-php/'>[Read More…]</a></span></p><div class="clear-float"></div>
		]]></description>
			<content:encoded><![CDATA[<p>Starting Index.php is the third lesson of my <a href="http://www.wpdesigner.com/2007/02/19/so-you-want-to-create-wordpress-themes-huh/">WordPress theme tutorial series</a>. If you haven’t read lesson <a href="http://www.wpdesigner.com/2007/02/21/wp-theme-lesson-1-intro/">one</a> and <a href="http://www.wpdesigner.com/2007/02/21/wp-theme-lesson-2-template-files-and-templates/">two</a>, I’d suggest you read them. Otherwise, you will not have a clue of what I’ll show you in this lesson.</p>
<p>It’s time to stop reading and start creating your WordPress Theme. In this lesson, you’ll get your hands dirty with some WordPress codes. This is the part where you really need a <a href="http://geeksaresexy.blogspot.com/2006/06/installing-wordpress-locally-under.html">WordPress blog installed on your computer</a>, not an online blog because offline is more convenient.</p>
<p><span id="more-89"></span></p>
<p><strong>Step 1</strong>: Open Xampp Control.<br />
Navigate to your xampp folder. Usually <strong>My Computer &gt; xampp</strong> or <strong>C:\xampp</strong>.</p>
<p>Double click on <strong>xampp-control.exe</strong>. A window will pop up. Click on start for Apache and MySQL. Your pop up window should mirror the image below:</p>
<p><img src="http://www.wpdesigner.com/wp-content/files/2007/02/xampp-control.gif" alt="xampp-control.gif" /></p>
<p>Now that it’s turned on, you can minimize that window.</p>
<p><strong>Step 2</strong>: Create your theme folder.<br />
Go to your wordpress themes folder. It should be at <strong>xampp/htdocs/wordpress/wp-content/themes</strong>. Create a new folder. Name it <strong>tutorial</strong>.</p>
<p><strong>Step 3</strong>: Create <strong>index.php</strong> and <strong>style.css</strong> files.<br />
Open up Notepad or the text editor of your choice. Notepad is at <strong>Start &gt; Programs &gt; Accessories &gt; Notepad</strong>.</p>
<p>Copy and paste everything from this file: <a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/index.txt">index.txt</a> to your Notepad window.</p>
<p>Save your notepad in the tutorial folder as <strong>index.php</strong><br />
<a href="http://www.wpdesigner.com/wp-content/files/2007/02/save-as-indexphp.gif%27%20alt=%27save-as-indexphp.gif" rel="lightbox[89]" title="wp theme tut：#3 Starting Index.php"><img src="http://www.wpdesigner.com/wp-content/files/2007/02/save-as-indexphp.gif" alt="save-as-indexphp.gif" width="400" /></a></p>
<p><img src="http://www.wpdesigner.com/wp-content/files/2007/02/save-as-indexphp2.gif" alt="save-as-indexphp2.gif" /></p>
<p>Open another notepad. Leave it empty. Save the empty notepad as <strong>style.css</strong>, in the same folder. Close the style.css notepad.</p>
<p>So now you have two files: index.php and style.css.<br />
<img src="http://www.wpdesigner.com/wp-content/files/2007/02/index-and-style.gif" alt="index-and-style.gif" /></p>
<p><strong>index.php Explanations</strong>:</p>
<p><a title="indexphp-explain.gif" href="http://www.wpdesigner.com/wp-content/files/2007/02/indexphp-explain.gif" rel="lightbox[89]"><img src="http://www.wpdesigner.com/wp-content/files/2007/02/indexphp-explain.gif" alt="indexphp-explain.gif" width="400" /></a></p>
<p>Click on the image above for the full view. I will explain to you what each circled area does.</p>
<p><strong>Doctype</strong> &#8211; Indicates what kind of codes you’re using to code your theme. Doctype is not important at this point. I’m pointing out Doctype so you don’t have think about it.</p>
<p><strong>&lt;html&gt;</strong> is where my web page starts.</p>
<p><strong>&lt;head&gt;</strong> is where the head of my web page starts. Every web page has a head and a body. <strong>&lt;/head&gt;</strong> is where the head ends.</p>
<p><strong>&lt;?php bloginfo(’stylesheet_url’); ?&gt;</strong> is a PHP function that calls for the location of the <strong>style.css</strong> file so my theme can link to it and style everything on my pages. Anytime codes are wrapped in <strong>&lt;?php</strong> and <strong>?&gt;</strong>, it’s PHP and it’s different from the rest of my codes. In PHP, <strong>&lt;?php</strong> is start and <strong>?&gt;</strong> is end.</p>
<p>So:</p>
<ul>
<li><strong>&lt;?php</strong> &#8211; start PHP</li>
<li><strong>bloginfo(’stylesheet_url’)</strong> &#8211; call for the location of style.css</li>
<li><strong>;</strong> &#8211; stop calling for style.css. The semicolon is one way of closing a set of codes within PHP.</li>
<li><strong>?&gt;</strong> &#8211; end PHP</li>
</ul>
<p>Moving on…</p>
<p><strong>&lt;body&gt;</strong> &#8211; This is where the body starts. The body is everything that I see and read on a web page. Reading this tutorial means I’m looking at the body of the web page. <strong>&lt;/body&gt;</strong> is where the body ends.</p>
<p><strong>&lt;/html&gt;</strong> is where my web page ends. Nothing else after that.</p>
<p><strong>Step 4</strong>: Copy and paste everything in <a href="http://www.wpdesigner.com/wp-content/files/wp-tutorial/style.txt">style.txt</a> to your style.css file. Save and close it.</p>
<p><strong>Step 5</strong>: Setting up your theme.<br />
Open up a browser.</p>
<p>Type: <strong>http://localhost/wordpress/wp-login.php</strong>. Go to it and login into your WordPress administration area. (You’re able to see the login page because you opened the Xampp Control in the first step. Otherwise, your browser will give you a Not Found error.</p>
<p>Looking at the administration area. Click on <strong>Presentation</strong> and click on the theme named <strong>Tutorial</strong> to activate it.</p>
<p><img src="http://www.wpdesigner.com/wp-content/files/2007/02/theme-empty-screenshot.gif" alt="theme-empty-screenshot.gif" /></p>
<p>Notice, your theme does not have a thumbnail screeshot yet. The box is empty. Once activated, WordPress will tell you.</p>
<p><img src="http://www.wpdesigner.com/wp-content/files/2007/02/theme-activated.gif" alt="theme-activated.gif" /></p>
<p>Now open up a new browser or tab (if your browser has tab browsing) and go to <strong>http://localhost/wordpress</strong>. You should then get a blank page. I mean completely blank. If it isn’t blank, you’re at the wrong page.</p>
<p>Your theme has been set up. That’s it for this lesson. Next up, we start working on the header template.</p>
<p><strong>Don’t forget to close your Xampp Control. Double click on its tray icon in your toolbar, click Stop for Apache and MySQL. Then click exit.</strong></p>
<p><img src="http://www.wpdesigner.com/wp-content/files/2007/02/xampp-control-close.gif" alt="xampp-control-close.gif" /><!-- PHP 5.x --></p>


<p>Related posts:<ol><li><a href='http://bulldoggie.cn/blog/2009/12/15/%e7%94%a8xampp%e5%9c%a8%e6%9c%ac%e5%9c%b0%e6%90%ad%e5%bb%bawordpress/' rel='bookmark' title='用xampp在本地搭建WordPress'>用xampp在本地搭建WordPress</a></li>
<li><a href='http://bulldoggie.cn/blog/2009/12/12/top-50-wordpress-tutorials/' rel='bookmark' title='Top 50 WordPress Tutorials'>Top 50 WordPress Tutorials</a></li>
<li><a href='http://bulldoggie.cn/blog/2010/09/16/quick-tip-create-a-realistic-credit-card-in-photoshop/' rel='bookmark' title='Quick Tip: Create a Realistic Credit Card in Photoshop'>Quick Tip: Create a Realistic Credit Card in Photoshop</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://bulldoggie.cn/blog/2009/12/12/starting-index-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

