<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>GamerzPlanet - For All Your Online Gaming Needs!! - Web Design</title>
		<link>http://www.gamerzplanet.net/forums/</link>
		<description>Discuss anything about web language such as HTML, PHP etc.</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 08:57:35 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.gamerzplanet.net/forums/gamerzplanet/misc/rss.jpg</url>
			<title>GamerzPlanet - For All Your Online Gaming Needs!! - Web Design</title>
			<link>http://www.gamerzplanet.net/forums/</link>
		</image>
		<item>
			<title>Tutorial Run PHP/MySQL on your Desktop</title>
			<link>http://www.gamerzplanet.net/forums/web-design/385111-run-php-mysql-on-your-desktop-new-post.html</link>
			<pubDate>Mon, 16 Nov 2009 12:54:40 GMT</pubDate>
			<description>If you have attempted to learn about web development, you have undoubtedly heard about the usefulness of learning both PHP and MySQL.  You really...</description>
			<content:encoded><![CDATA[<div>If you have attempted to learn about web development, you have undoubtedly heard about the usefulness of learning both PHP and MySQL.  You really have two options in learning to play around with PHP, commit your changes to your own hosting service, or run PHP on a virtual host.<br />
<br />
What I want to cover, is setting up your own virtual host for trial and error.  What you set up here, will <b>NOT</b> be available on the open web, and is mostly only used for testing and development purposes.<br />
<br />
First, we need to get a virtual host provider.  What this guide will be using is WAMP, however there are alternatives such as XAMPP, or LAMP (for Linux Distributions.)<br />
<br />
First, download the WAMP server at: <a href="http://www.gamerzplanet.net/forums/redirector.php?url=http%3A%2F%2Fwww.wampserver.com%2Fen%2Fdownload.php" target="_blank" rel="nofollow">http://www.wampserver.com/en/download.php</a><br />
<br />
Run the installation, simply select &quot;Next&quot; to all available options.<br />
<br />
After everything is installed, run WAMP server.  You should see a... sushi looking icon appear on your desktop.<br />
<br />
Now, lets take a step back for a second, and create a directory where you want to build your website.  The following folder/file names are left to your own discretion.  <br />
<br />
Create a new folder in your c directory, name it &quot;MySite&quot;.  You should have a folder in: &quot;C:/MySite&quot;.  Got it?  Good.<br />
<br />
Next we are going to want to set up an alias.  An alias essentially allows you to specify a point in your computer, and use it as an access point for your web server.<br />
<br />
Now, click on the WAMP icon in your tasklist.  You want to hover over &quot;Apache&quot;, &quot;Alias&quot; and &quot;Add Alias.&quot;<br />
<br />
<img src="http://www.tehtooya.net/WAMP-icons.jpg" border="0" alt="" onload="NcodeImageResizer.createOn(this);" /><br />
<br />
A Command-Prompt screen should appear, asking you to specify your site name.  Lets go with the name, &quot;test&quot;.<br />
<br />
It will then ask you for a directory.  Enter in <div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				C:/MySite
			
			<hr />
		</td>
	</tr>
	</table>
</div>You should receive a confirmation message, telling you your alias is set up.<br />
<br />
Great.  Now, how do you know this is working?  Simple!  Open up a notepad file, and type in:<br />
<br />
<div style="margin:20px; margin-top:5px; ">
	<div class="smallfont" style="margin-bottom:2px">Quote:</div>
	<table cellpadding="6" cellspacing="0" border="0" width="100%">
	<tr>
		<td class="alt2">
			<hr />
			
				&lt;?php phpinfo(); ?&gt;
			
			<hr />
		</td>
	</tr>
	</table>
</div>Click on Save as, go over to your &quot;MySite&quot; folder, and create a file named &quot;index.php&quot;  <br />
<b>Make sure you select &quot;All Files&quot; type, otherwise you are not saving a php file.</b><br />
<br />
<img src="http://www.tehtooya.net/WAMP-saveas.jpg" border="0" alt="" onload="NcodeImageResizer.createOn(this);" /><br />
<br />
Heres the fun part! :)<br />
<br />
Make sure WAMP is running, and go over to: &quot;localhost/test/&quot; on your favorite browser.  You have created your first PHP file on your computer, congrats.  Give yourself a pat on the back, and head on over to <a href="http://www.gamerzplanet.net/forums/redirector.php?url=http%3A%2F%2Fwww.w3schools.com%2FPHP%2Fphp_intro.asp" target="_blank" rel="nofollow">http://www.w3schools.com/PHP/php_intro.asp</a> to take your next steps.<br />
<br />
Notes<br />
---<br />
This guide is a WIP, if you have any issues or are confused with what I said, let me know and I will clarify. :)<br />
<br />
It is also important to note, with WAMP, you are running MySQL on your computer as well.  You can access this by going to <a href="http://www.gamerzplanet.net/forums/redirector.php?url=http%3A%2F%2Flocalhost%2Fphpmyadmin%2F" target="_blank" rel="nofollow">http://localhost/phpmyadmin/</a></div>

]]></content:encoded>
			<category domain="http://www.gamerzplanet.net/forums/web-design/">Web Design</category>
			<dc:creator>Tooya</dc:creator>
			<guid isPermaLink="true">http://www.gamerzplanet.net/forums/web-design/385111-run-php-mysql-on-your-desktop.html</guid>
		</item>
	</channel>
</rss>
