<?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>Notes Log &#187; Zend Debugger</title>
	<atom:link href="http://noteslog.com/tag/zend-debugger/feed/" rel="self" type="application/rss+xml" />
	<link>http://noteslog.com</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 18:39:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to setup your web development environment</title>
		<link>http://noteslog.com/post/how-to-setup-your-web-development-environment/</link>
		<comments>http://noteslog.com/post/how-to-setup-your-web-development-environment/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 20:19:14 +0000</pubDate>
		<dc:creator>Andrea Ercolino</dc:creator>
				<category><![CDATA[Toolkit]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Eclipse PDT]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WampServer]]></category>
		<category><![CDATA[Zend Debugger]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://noteslog.com/?p=318</guid>
		<description><![CDATA[If you want to setup a web development environment in your PC, there are many options out there, so I&#8217;m going to describe the one that just worked for me. This is a no-frills tutorial about how to setup a web development environment for PHP, using  An EeePC 1000H as the local machine A wireless [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to setup a web development environment in your PC, there are many options out there, so I&#8217;m going to describe the one that just worked for me.</p>
<p>This is a no-frills tutorial about how to setup a web development environment for PHP, using <span id="more-318"></span></p>
<ul>
<li>An EeePC 1000H as the local machine</li>
<li>A wireless ADSL network for the internet connection</li>
<li>WinXP/SP3 Home as the operating system</li>
<li>Apache as the web server</li>
<li>MySQL as the database management system</li>
<li>PHP as the source language</li>
<li>Subversion and Tortoise for source control management</li>
<li>Eclipse PDT as the integrated development environment</li>
<li>Zend Debugger for remote debugging</li>
<li>Zend Framework as the supporting framework</li>
</ul>
<h3></h3>
<h3>A PC connected to the internet</h3>
<p>This is easy, you already have it, or you should. Mine is the <a href="http://eeepc.asus.com/" target="_blank">EeePC</a>, with <a href="http://www.microsoft.com/windowsxp/home/default.mspx" target="_blank">WinXP Home</a>.</p>
<h3>Apache, MySQL, PHP</h3>
<p>This is very easy too. There are many all-in-one packages, but I feel at home with the <a title="All in one for Apache, MySQL, and PHP" href="http://www.wampserver.com/en/" target="_blank">WampServer</a>.</p>
<ul>
<li>Download and install the WampServer 2.0</li>
</ul>
<p>These versions are currently bundled:  <a href="http://httpd.apache.org/" target="_blank">Apache</a> 2.2.11, <a href="http://www.mysql.com/" target="_blank">MySQL</a> 5.1.30, <a href="http://www.php.net/" target="_blank">PHP</a> 5.2.8, <a href="http://www.phpmyadmin.net/" target="_blank">phpMyAdmin</a> 3.1.1</p>
<h3>Subversion and Tortoise</h3>
<p><a href="http://xp-dev.com/" target="_blank">XP-Dev</a> is my choice for <a href="http://subversion.tigris.org/" target="_blank">Subversion</a> hosting. Easy to setup and free. Nobody else will get access to your code by default, but you can change it as needed. Slick interface, fast updates and commits, (apparently) trustworthy.</p>
<ul>
<li>Create your account at XP-Dev. You&#8217;ll currently get 1500 MB of svn hosting space.</li>
<li>Login and create your first repository. Its name will be &lt;your XP-Dev account&gt;_&lt;your repository name&gt;</li>
</ul>
<p><a href="http://tortoisesvn.tigris.org/" target="_blank">Tortoise</a> is my choice for the svn administration. Easy to setup and free (again).</p>
<ul>
<li>Download and install Tortoise.</li>
</ul>
<p>Tortoise is for dummies like me. Just righ click in a folder and the contextual menu will show all the needed options.</p>
<ul>
<li>Create a local folder for mirroring your remote project repository. Don&#8217;t put it under the www folder of Apache.</li>
<li>Checkout the repository there. This will setup the link between them.</li>
<li>Into the local folder create the classical trunk, tags, and branches folders.</li>
<li>Commit all back to the repository, together with a nice comment.</li>
</ul>
<p>If all goes well, your new source control management system is correctly setup.</p>
<h3>Eclipse PDT</h3>
<p><a href="http://www.eclipse.org/pdt/" target="_blank">Eclipse PDT</a> is my preferred <a href="http://en.wikipedia.org/wiki/Integrated_development_environment" target="_blank">IDE</a> for PHP. There&#8217;s an all-in-one distribution, that&#8217;s very easy to setup. Well, it couldn&#8217;t be easier: no setup at all.</p>
<ul>
<li><a href="http://www.java.com/" target="_blank">Download</a> and install Java</li>
<li><a href="http://downloads.zend.com/pdt/all-in-one/" target="_blank">Download</a> and unzip Eclipse PDT into the root of a disk unit, like C:</li>
</ul>
<p>It&#8217;s important that you unzip into the root, otherwise some files won&#8217;t unzip due their long path names. Eventually, you&#8217;ll get an eclipse folder, containing an eclipse executable.</p>
<ul>
<li>Start eclipse and learn <a href="http://www.youtube.com/watch?v=VRFZpk-YHl4" target="_blank">how to</a> <a href="http://www.youtube.com/watch?v=x8WnciHjXco" target="_blank">move around</a>.</li>
<li>Create a new PHP project, into the trunk folder.</li>
<li>Open the trunk folder from WinXP and add to the ignore list of Tortoise all the files automatically created by eclipse. Then commit.</li>
</ul>
<h3></h3>
<h3>Zend Debugger</h3>
<p>Even if you think that the Zend Debugger was bundled with the all-in-one Eclipse PDT, follow this step too. In fact, that Zend Debugger is not for server debugging, while this one is.</p>
<ul>
<li><a href="http://downloads.zend.com/pdt/server-debugger/" target="_blank">Download</a> and unzip Zend Debugger.</li>
<li>Follow the short instructions of the readme file to intall it. For 	editing the php.ini, use the link provided by WampServer.</li>
</ul>
<h3></h3>
<h3>Zend Framework</h3>
<p>You could use any other framework, or no framework at all, but I know the <a href="http://framework.zend.com/" target="_blank">Zend Framework</a> quite a bit.</p>
<ul>
<li>Download and unzip the Zend Framework.</li>
</ul>
<p>The Zend Framework site provides a <a href="http://framework.zend.com/docs/quickstart" target="_blank">QuickStart</a> tutorial that sets up an &#8220;Hello World&#8221; application.</p>
<ul>
<li>Activate in Apache (WampServer) the rewrite module.</li>
<li>Create in Apache (WampServer) an alias from &#8216;project&#8217; (trim apostrophes) to the trunk folder of 	your project.</li>
<li>Go back to the IDE and code in the QuickStart tutorial. Don&#8217;t put the ZF library into the trunk/library folder. Instead leave it where it is and put its path into the include_path 	directive of php.ini, using WampServer.</li>
</ul>
<p>That&#8217;s much better, because your current ZF library version won&#8217;t replicate by means of svn to your remote repository, and when a new version will be available, you can change the include_path directive to point to it, and change it back if something goes wrond (sometimes it does), without moving files around.</p>
<p>Moreover, you can use the trunk/library folder for your own library files. I suggest a personal folder for your reusable classes like forms, elements, filters, and validators, and a Zend folder that mirrors the Zend Framework when you need to fix a bug in a class, or hack something into the ZF library.</p>
<p>Due to the fact that the PHP interpreter will scan the trunk/library folder before the external ZF library folder (if you set up the include_path as shown in the QuickStart tutorial), you can &#8220;overwrite&#8221; the ZF library classes with your copies if you need, on the fly, maintaining them well apart.</p>
<h3>First debugging session</h3>
<p>Now your web development environment should be setup and you can start your first debugging session.</p>
<ul>
<li>Open the home page http://localhost/project/ in a browser.</li>
<li>Start the debugger at that page, using Eclipse PDT. Check that the URL into the Debug Configuration dialog is correct, and the option &#8216;Break at first line&#8217; is checked.</li>
<li>Explore 	the code step by step.</li>
<li>If 	all is OK then commit, else fix bugs.</li>
</ul>
<h3></h3>
<h3>Start developing</h3>
<p>That&#8217;s alll. Now it&#8217;s up to you.</p>
]]></content:encoded>
			<wfw:commentRss>http://noteslog.com/post/how-to-setup-your-web-development-environment/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

