<?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>Shiki &#187; wampserver</title>
	<atom:link href="http://shikii.net/blog/tag/wampserver/feed/" rel="self" type="application/rss+xml" />
	<link>http://shikii.net/blog</link>
	<description>I&#039;m so bad with words that I can&#039;t even make a cool tagline</description>
	<lastBuildDate>Wed, 28 Mar 2012 23:37:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>The undefined curl function in console (WampServer)</title>
		<link>http://shikii.net/blog/the-undefined-curl-function-in-console-wampserver/</link>
		<comments>http://shikii.net/blog/the-undefined-curl-function-in-console-wampserver/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 08:57:06 +0000</pubDate>
		<dc:creator>Shiki</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wampserver]]></category>

		<guid isPermaLink="false">http://shikii.net/blog/?p=122</guid>
		<description><![CDATA[Stupid stupid me. On Windows/WampServer, I&#8217;ve always had this problem when working with PHP code that can run in the console and using cURL methods.. PHP Fatal error: Call to undefined function curl_init() in D:\Shiki\github\yii-clockwerk\test-app\CurlHelper.php on line 90 Fatal error: Call to undefined function curl_init() in D:\Shiki\github\yii-clockwerk\test-app\CurlHelper.php on line 90 It (cURL) works in the [...]]]></description>
			<content:encoded><![CDATA[<p>Stupid stupid me. On Windows/WampServer, I&#8217;ve always had this problem when working with PHP code that can run in the console and using 
<a href="http://php.net/manual/en/book.curl.php">cURL</a> methods..</p>

<pre><code>PHP Fatal error:  Call to undefined function curl_init() in D:\Shiki\github\yii-clockwerk\test-app\CurlHelper.php on line 90
Fatal error: Call to undefined function curl_init() in D:\Shiki\github\yii-clockwerk\test-app\CurlHelper.php on line 90
</code></pre>

<p>It (cURL) works in the browser but not when in console. I didn&#8217;t think that it was 
<a href="http://old.nabble.com/Using-curl-inside-cake-console-td20409372.html">this simple</a> to fix. The PHP CLI uses a different config 
file (php.ini) compared to the one used by WampServer/Apache. You can see the location of the config file being used by typing:</p>

<pre><code>php --ini
</code></pre>

<p>Result:</p>

<pre><code>Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File:         C:\wamp\bin\php\php5.3.0\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)
</code></pre>

<p>You can then fix the curl problem by enabling it in the php.ini file being used. Make sure this is not commented out:</p>

<pre><code>extension=php_curl.dll
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://shikii.net/blog/the-undefined-curl-function-in-console-wampserver/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing Memcached for PHP 5.3 on Windows 7</title>
		<link>http://shikii.net/blog/installing-memcached-for-php-5-3-on-windows-7/</link>
		<comments>http://shikii.net/blog/installing-memcached-for-php-5-3-on-windows-7/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 06:23:30 +0000</pubDate>
		<dc:creator>Shiki</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wampserver]]></category>
		<category><![CDATA[windows-7]]></category>

		<guid isPermaLink="false">http://shikii.net/blog/?p=80</guid>
		<description><![CDATA[Updated: December 28, 2010 First off, all credits go to this guy. I&#8217;m just listing the steps on how I did it in Windows 7 with PHP 5.3. Also, I tested this using WampServer but I believe it should work on any PHP install. Install memcached Download the Memcached Win32 library here: http://code.jellycan.com/memcached. Just get [...]]]></description>
			<content:encoded><![CDATA[<p><img title="Memcached" src="http://shikii.net/blog/wp-content/uploads/2010/03/memcached-win7.jpg" alt="" width="640" /></p>

<p class="article-update-time">Updated: <time>December 28, 2010</time></p>

<p>First off, all credits go to <a href="http://pureform.wordpress.com/2008/01/10/installing-memcache-on-windows-for-php/">this guy</a>. 
I&#8217;m just listing the steps on how I did it in Windows 7 with PHP 5.3. Also, I tested this using 
<a href="http://www.wampserver.com/en/">WampServer</a> but I believe it should work on any PHP install.</p>

<h2>Install memcached</h2>

<ol>
<li>Download the Memcached Win32 library here: <a href="http://code.jellycan.com/memcached/">http://code.jellycan.com/memcached</a>. Just get the Win32 binary (<a href="http://code.jellycan.com/files/memcached-1.2.6-win32-bin.zip">direct link</a>). Extract the downloaded archive file in a 
directory (e.g. <code>c:\memcached</code>). There should be a <code>memcached.exe</code> in there.</li>
<li>Run a command prompt <strong>as an administrator</strong>. Some info on how to do that 
<a href="http://blogs.msdn.com/tims/archive/2006/11/02/windows-vista-secret-10-open-an-elevated-command-prompt-in-six-keystrokes.aspx">here</a>.</li>
<li><p>Install memcached as a service. Go to the memcached directory, type and run:</p>

<pre><code>memcached -d install
</code></pre>

<p>If you get an error saying <em>&#8220;MSVCP71.dll is missing&#8221;</em>, see <a href="http://www.addictivetips.com/windows-tips/fix-msvcp71-dll-and-msvcr71-dll-missing-error-in-windows-7/">this page</a> for a solution.</p></li>
<li><p>Start the memcached service by running:</p>

<pre><code>memcached -d start
</code></pre></li>
<li><p>You can verify if memcached is running by executing this in the command line:</p>

<pre><code>wmic process get description, executablepath | findstr memcached.exe
</code></pre>

<p>You should see a result list showing memcached.exe and its full path.</p></li>
</ol>

<h2>Install PHP Memcache extension (php_memcache.dll)</h2>

<ol>
<li>Chances are you don&#8217;t have <code>php_memcache.dll</code> in your PHP extensions yet. 
<strike>You can download a build of it <a href="http://downloads.php.net/pierre/">here</a>.</strike> <strong>Basu</strong> has noted in the comments that VC6 builds are no longer available from that link. You can download the correct build <a href="http://shikii.net/blog/downloads/php_memcache-cvs-20090703-5.3-VC6-x86.zip">here</a>. </li>
<li>The archive should contain <code>php_memcache.dll</code>. Extract the archive to your php extensions directory. On my system (WampServer), 
this was <code>C:\wamp\bin\php\php5.3.0\ext</code>.</li>
<li><p>Edit <code>php.ini</code>, add this line to enable the extension:</p>

<pre><code>extension=php_memcache.dll
</code></pre>

<p>Or if you&#8217;re using WampServer, restart it and enable the extension through the WampServer system tray menu.</p></li>
</ol>

<h2>Test</h2>

<p>Test the installation using the sample PHP code here: <a href="http://www.php.net/manual/en/memcache.examples-overview.php">http://www.php.net/manual/en/memcache.examples-overview.php</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://shikii.net/blog/installing-memcached-for-php-5-3-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>64</slash:comments>
		</item>
	</channel>
</rss>

