<?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>Narkaleptic Thoughtless &#187; symlink</title>
	<atom:link href="http://josh.mainelan.net/tag/symlink/feed/" rel="self" type="application/rss+xml" />
	<link>http://josh.mainelan.net</link>
	<description>Random nonsense from the mind of Narkaleptic.</description>
	<lastBuildDate>Wed, 02 Sep 2009 18:29:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP 5.3 symlink() in Windows Vista and Server 2008</title>
		<link>http://josh.mainelan.net/2009/06/php-5-3-symlink-in-windows/</link>
		<comments>http://josh.mainelan.net/2009/06/php-5-3-symlink-in-windows/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 15:22:40 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[mklink]]></category>
		<category><![CDATA[php 5.3]]></category>
		<category><![CDATA[policy]]></category>
		<category><![CDATA[secpol.msc]]></category>
		<category><![CDATA[symlink]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[windows vista]]></category>

		<guid isPermaLink="false">http://josh.mainelan.net/?p=87</guid>
		<description><![CDATA[I just discovered that Vista can create symbolic links via the command mklink!  It performs the same thing as ln in linux with both hard and soft links.  My understanding of links is fairly limited but I use them on my web server to apply seam-less templates.  Until now, this was something [...]]]></description>
			<content:encoded><![CDATA[<p>I just discovered that Vista can create symbolic links via the command <code>mklink</code>!  It performs the same thing as <code>ln</code> in linux with both hard and soft links.  My understanding of links is fairly limited but I use them on my web server to apply seam-less templates.  Until now, this was something that I could only test on my web server and not my Windows 7 development PC.  PHP 5.3 automatically uses the <code>mklink</code> command when you use <code>symlink()</code> but the problem comes with enabling it in Windows Vista or 7.</p>
<p>If you pull up a command prompt and try to use mklink, you&#8217;ll see something like this:<br />
<code><br />
D:\Web>mklink /D nnnnn.com\content templates\bluemoon<br />
You do not have sufficient privilege to perform this operation.<br />
</code><br />
Or PHP will throw this back at you:<br />
<code><br />
Debug Warning: /includes/templates.inc.php line 78 - symlink() [<a href='function.symlink'>function.symlink</a>]: Cannot create symlink, error code(1314)<br />
</code></p>
<p>To fix this:</p>
<ol>
<li>Bring up your run box, type &#8220;<code>secpol.msc</code>&#8221; and click OK.</li>
<li>Navigate under the Security Settings \ Local Policies \ User Rights Assignment folder.</li>
<li>Find &#8220;Create symbolic links&#8221; and add the Users group to it.</li>
</ol>
<p>I think you need to restart your computer or something after doing this.</p>
]]></content:encoded>
			<wfw:commentRss>http://josh.mainelan.net/2009/06/php-5-3-symlink-in-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
