<?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>Ersin Acar</title>
	<atom:link href="http://ersinacar.com/feed" rel="self" type="application/rss+xml" />
	<link>http://ersinacar.com</link>
	<description>PHP and Web Technologies Freak</description>
	<lastBuildDate>Fri, 21 Aug 2009 07:54:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jQuery Visualize: Updated accessible charts and graphs</title>
		<link>http://ersinacar.com/jquery-visualize-updated-accessible-charts-and-graphs_182.html</link>
		<comments>http://ersinacar.com/jquery-visualize-updated-accessible-charts-and-graphs_182.html#comments</comments>
		<pubDate>Fri, 21 Aug 2009 07:54:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[charts]]></category>
		<category><![CDATA[graphs]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[visualize]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=182</guid>
		<description><![CDATA[Scott Jehl has released jQuery Visualize, the plugin that groks HTML tables and generates lovely charts from it, all from a simple $(&#8216;table&#8217;).visualize(); (lot&#8217;s of options for you to twiddle too if you want).
First, you create a bog standard table like:

&#60;table border=&#34;0&#34;&#62;
&#60;caption&#62;2009 Individual Sales by Category&#60;/caption&#62;
&#60;thead&#62;
&#60;tr&#62;
&#60;td&#62;&#60;/td&#62;
&#60;th&#62;food&#60;/th&#62;
&#60;th&#62;auto&#60;/th&#62;
&#60;th&#62;household&#60;/th&#62;
&#60;th&#62;furniture&#60;/th&#62;
&#60;th&#62;kitchen&#60;/th&#62;
&#60;th&#62;bath&#60;/th&#62;
&#60;/tr&#62;
&#60;/thead&#62;
&#60;tbody&#62;
&#60;tr&#62;
&#60;th&#62;Mary&#60;/th&#62;
&#60;td&#62;150&#60;/td&#62;
&#60;td&#62;160&#60;/td&#62;
&#60;td&#62;40&#60;/td&#62;
&#60;td&#62;120&#60;/td&#62;
&#60;td&#62;30&#60;/td&#62;
&#60;td&#62;70&#60;/td&#62;
&#60;/tr&#62;
&#60;tr&#62;
&#60;th&#62;Tom&#60;/th&#62;
&#60;td&#62;3&#60;/td&#62;
&#60;td&#62;40&#60;/td&#62;
&#60;td&#62;30&#60;/td&#62;
&#60;td&#62;45&#60;/td&#62;
&#60;td&#62;35&#60;/td&#62;
&#60;td&#62;49&#60;/td&#62;
&#60;/tr&#62;
...repetitive rows removed for brevity.&#60;/tbody&#62;&#60;/table&#62;

Then you visualize it. You end [...]]]></description>
			<content:encoded><![CDATA[<p>Scott Jehl has <a href="http://www.filamentgroup.com/lab/jquery_visualize_plugin_accessible_charts_graphs_from_tables_html5_canvas/">released jQuery Visualize</a>, the plugin that groks HTML tables and generates lovely charts from it, all from a simple $(&#8216;table&#8217;).visualize(); (lot&#8217;s of options for you to twiddle too if you want).</p>
<p>First, you create a bog standard table like:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;table border=&quot;0&quot;&gt;
&lt;caption&gt;2009 Individual Sales by Category&lt;/caption&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;th&gt;food&lt;/th&gt;
&lt;th&gt;auto&lt;/th&gt;
&lt;th&gt;household&lt;/th&gt;
&lt;th&gt;furniture&lt;/th&gt;
&lt;th&gt;kitchen&lt;/th&gt;
&lt;th&gt;bath&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;th&gt;Mary&lt;/th&gt;
&lt;td&gt;150&lt;/td&gt;
&lt;td&gt;160&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;td&gt;120&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;70&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;th&gt;Tom&lt;/th&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;45&lt;/td&gt;
&lt;td&gt;35&lt;/td&gt;
&lt;td&gt;49&lt;/td&gt;
&lt;/tr&gt;
...repetitive rows removed for brevity.&lt;/tbody&gt;&lt;/table&gt;</pre></div></div>

<p>Then you <a href="http://www.filamentgroup.com/examples/charting_v2/">visualize</a> it. You end up with pretty graphs like these:<br />
<img src="http://ersinacar.com/wp-content/uploads/2009/08/jqueryvisualize.png.png" alt="jquery visualize" title="jquery visualize" width="500" height="747" class="alignnone size-full wp-image-183" /></p>
]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/jquery-visualize-updated-accessible-charts-and-graphs_182.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Text rotation with CSS</title>
		<link>http://ersinacar.com/text-rotation-with-css_177.html</link>
		<comments>http://ersinacar.com/text-rotation-with-css_177.html#comments</comments>
		<pubDate>Fri, 21 Aug 2009 07:36:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[rotation]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=177</guid>
		<description><![CDATA[Jonathan Snook posted good CSS stuff on Text Rotation with CSS that takes a nice bit of markup like this:

&#60;div class=&#34;example-date&#34;&#62;
  &#60;span class=&#34;day&#34;&#62;31&#60;/span&#62; 
  &#60;span class=&#34;month&#34;&#62;July&#60;/span&#62; 
  &#60;span class=&#34;year&#34;&#62;2009&#60;/span&#62;
&#60;/div&#62;

and converts it to:

all via the CSS:

-webkit-transform: rotate&#40;-90deg&#41;; 
-moz-transform: rotate&#40;-90deg&#41;;	
filter: progid:DXImageTransform.Microsoft.BasicImage&#40;rotation=3&#41;;

yeah as you can see it&#8217;s working on IE too. Not bad ha?
]]></description>
			<content:encoded><![CDATA[<p>Jonathan Snook posted good CSS stuff on <a href="http://snook.ca/archives/html_and_css/css-text-rotation">Text Rotation with CSS</a> that takes a nice bit of markup like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;example-date&quot;&gt;
  &lt;span class=&quot;day&quot;&gt;31&lt;/span&gt; 
  &lt;span class=&quot;month&quot;&gt;July&lt;/span&gt; 
  &lt;span class=&quot;year&quot;&gt;2009&lt;/span&gt;
&lt;/div&gt;</pre></div></div>

<p>and converts it to:<br />
<img src="http://ersinacar.com/wp-content/uploads/2009/08/text-rotation.png" alt="text-rotation" title="text-rotation" width="265" height="100" class="alignnone size-full wp-image-178" /><br />
all via the CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">-webkit-transform<span style="color: #00AA00;">:</span> rotate<span style="color: #00AA00;">&#40;</span>-90deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> 
-moz-transform<span style="color: #00AA00;">:</span> rotate<span style="color: #00AA00;">&#40;</span>-90deg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>	
filter<span style="color: #00AA00;">:</span> progid<span style="color: #3333ff;">:DXImageTransform</span><span style="color: #6666ff;">.Microsoft</span>.BasicImage<span style="color: #00AA00;">&#40;</span>rotation<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">3</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>yeah as you can see it&#8217;s working on IE too. Not bad ha?</p>
]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/text-rotation-with-css_177.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fuck This Website!</title>
		<link>http://ersinacar.com/fuck-this-website_175.html</link>
		<comments>http://ersinacar.com/fuck-this-website_175.html#comments</comments>
		<pubDate>Mon, 27 Jul 2009 09:05:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[fuck]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[sticker]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=175</guid>
		<description><![CDATA[I found this website about 2 or years ago. it&#8217;s freaking funny xD Here are some picture from the site;




]]></description>
			<content:encoded><![CDATA[<p>I found <a href="http://www.fuckthiswebsite.com/">this</a> website about 2 or years ago. it&#8217;s freaking funny xD Here are some picture from the site;<br />
<img src="http://www.fuckthiswebsite.com/Images/fuck_23.gif" alt="Tiger Terror" /><span id="more-175"></span><br />
<img src="http://www.fuckthiswebsite.com/Images/fuck_27.gif" alt="restroom" /><br />
<img src="http://www.fuckthiswebsite.com/Images/fuck_7.gif" alt="no fuck" /><br />
<img src="http://www.fuckthiswebsite.com/Images/fuck_10.gif" alt="Chicken" /></p>
]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/fuck-this-website_175.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS 3 and  HTML 5 Cheat Sheet (PDF)</title>
		<link>http://ersinacar.com/css-3-and-html-5-cheat-sheet-pdf_171.html</link>
		<comments>http://ersinacar.com/css-3-and-html-5-cheat-sheet-pdf_171.html#comments</comments>
		<pubDate>Mon, 27 Jul 2009 08:51:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[css 3]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[html 5]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[sheet]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=171</guid>
		<description><![CDATA[I saw this and this post on smashin magazine.
You can download this sheets for free
CSS 3

HTML 5


]]></description>
			<content:encoded><![CDATA[<p>I saw <a href="http://www.smashingmagazine.com/2009/07/13/css-3-cheat-sheet-pdf/">this</a> and <a href="http://www.smashingmagazine.com/2009/07/06/html-5-cheat-sheet-pdf/">this</a> post on smashin magazine.<br />
You can download this sheets for free<br />
<a href="http://media2.smashingmagazine.com/wp-content/uploads/images/css3-cheat-sheet/css3.gif">CSS 3<br />
<img src="http://media2.smashingmagazine.com/wp-content/uploads/images/css3-cheat-sheet/css3.gif" alt="CSS 3 Sheet" /></a><br />
<a href="http://www.smashingmagazine.com/2009/07/06/html-5-cheat-sheet-pdf/">HTML 5<br />
<img src="http://media2.smashingmagazine.com/wp-content/uploads/images/html5-cheat-sheet/html5.gif" alt="HTML 5 Sheet" /><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/css-3-and-html-5-cheat-sheet-pdf_171.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 5.3 Released!! Horeyyy!!</title>
		<link>http://ersinacar.com/php-5-3-released-horeyyy_168.html</link>
		<comments>http://ersinacar.com/php-5-3-released-horeyyy_168.html#comments</comments>
		<pubDate>Mon, 27 Jul 2009 08:41:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[closures]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[namespaces]]></category>
		<category><![CDATA[php 5.3]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=168</guid>
		<description><![CDATA[I can&#8217;t blog much cuz of my works. I&#8217;m pretty busy in these days. When i check php.net,  i saw PHP 5.3 released post in 30 Jun -.- nevermind. After a long string of delays, PHP 5.3 is finally out.  On the course of last 2 years, I was pretty sure a number [...]]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t blog much cuz of my works. I&#8217;m pretty busy in these days. When i check <a href="http://php.net">php.net</a>,  i saw PHP 5.3 released post in 30 Jun -.- nevermind. After a long string of delays, <a href="http://php.net/releases/5_3_0.php">PHP 5.3 is finally out</a>.  On the course of last 2 years, I was pretty sure a number of times that it will happen next month the latest, but there always were good reasons to postpone it. Now finally it’s officially out. I think it’s a huge step for PHP. Download it and try it!</p>
<p>Some major new features in 5.3:<br />
<span id="more-168"></span><br />
   1. <a href="http://php.net/namespaces">Namespaces</a>! They didn’t end up exactly as I thought they would but they are a major feature PHP was missing for a long time, and I’m very curious to see how it works out in big projects.<br />
   2.<a href="http://www.php.net/manual/en/functions.anonymous.php"> Closures and anonymous functions</a>! PHP now has first-class functions, and you can do all kinds of crazy stuff with it. Or just make your code easier to read and maintain <img src='http://ersinacar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
   3.<a href="http://php.net/gc_enable"> Garbage collection</a>. PHP engine, being refcount-based, always has had a slight problem with reference loops. Even though usually it was not a big issue since at the end of the request everything is cleaned up, for long-running PHP applications not based on short request pattern it became a problem. Not anymore – now the engine knows to clean up such loops.<br />
   4. <a href="http://php.net/lsb">Late static binding</a> – it’s somewhat exotic thing for people that never encountered it, but was very burning issue for people that did need it. Basically, when class Foo extends class Bar, and the method func() defined in Foo is called as Bar::func(), there was no way to distinguish it from Foo::func(). Now there is. This allows to implement all kinds of cool patterns like ActiveRecord.<br />
   5. <a href="http://php.net/intl">Intl extension</a> in core – lots of functions to allow you to internationalize your application.<br />
   6. <a href="http://php.net/phar">Phar</a> in core – now you can pack all the application in one neat file and still be able to run it!</p>
<p>Also in 5.3:</p>
<p>   1. Nowdocs – same as <a href="http://www.php.net/manual/en/language.types.string.php">heredocs</a>, but doesn’t parse variables. Excellent feature for somebody that wants to include bing chunk of text into the script which can happen to have $’s etc. in it.<br />
   2. ?: shortcut. That’s simple – $a?:$b is $a if $a is true, otherwise it’s $b.<br />
   3. goto. Yes, I know. But now we have it too. Deal with it. <img src='http://ersinacar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
   4. <a href="http://php.net/mysqli.mysqlnd">mysqlnd</a> – native PHP-specific mysql driver.</p>
<p>Last but definitely not least – tons of performance improvements, bug fixes, etc. <a href="http://php.net/downloads.php">Download it</a> today! <img src='http://ersinacar.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/php-5-3-released-horeyyy_168.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change SSH welcome message on linux</title>
		<link>http://ersinacar.com/how-to-change-ssh-welcome-message-on-linux_164.html</link>
		<comments>http://ersinacar.com/how-to-change-ssh-welcome-message-on-linux_164.html#comments</comments>
		<pubDate>Wed, 08 Jul 2009 17:00:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[kenny]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=164</guid>
		<description><![CDATA[Every time I connect to my home server through my ssh client, I receive the same message and I’m getting bored of seeing it, so I decided to change the message to something else.
Here’s the message that I get every time:


Last login: Wed Jul  8 16:35:28 2009 from 192.168.2.3
Linux localhost 2.6.20-15-server #2 SMP Sun [...]]]></description>
			<content:encoded><![CDATA[<p>Every time I connect to my home server through my ssh client, I receive the same message and I’m getting bored of seeing it, so I decided to change the message to something else.</p>
<p>Here’s the message that I get every time:<br />
<span id="more-164"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Last <span style="color: #c20cb9; font-weight: bold;">login</span>: Wed Jul  <span style="color: #000000;">8</span> <span style="color: #000000;">16</span>:<span style="color: #000000;">35</span>:<span style="color: #000000;">28</span> <span style="color: #000000;">2009</span> from 192.168.2.3
Linux localhost 2.6.20-<span style="color: #000000;">15</span>-server <span style="color: #666666; font-style: italic;">#2 SMP Sun Apr 15 07:41:34 UTC 2007 i686</span>
&nbsp;
The programs included with the Ubuntu system are <span style="color: #c20cb9; font-weight: bold;">free</span> software;
the exact distribution terms <span style="color: #000000; font-weight: bold;">for</span> each program are described <span style="color: #000000; font-weight: bold;">in</span> the
individual files <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>doc<span style="color: #000000; font-weight: bold;">/*/</span>copyright.
&nbsp;
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
root<span style="color: #000000; font-weight: bold;">@</span>localhost:~<span style="color: #666666; font-style: italic;">#</span></pre></div></div>

<p>Changing this message requires editing two different files. The first three sections can be modified by editing the following file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">  <span style="color: #c20cb9; font-weight: bold;">nano</span>  <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>motd</pre></div></div>

<p>This file contains the linux build number as well as the Ubuntu warranty message. I don’t find this particularly useful, so I removed all of it and replaced it with my own message.</p>
<p>To disable the last login message (which I don’t recommend doing), you will need to edit the following file in sudo mode:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">  <span style="color: #c20cb9; font-weight: bold;">nano</span>  <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssh<span style="color: #000000; font-weight: bold;">/</span>sshd_config</pre></div></div>

<p>Find this line in the file and change the yes to no as shown:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">    PrintLastLog no</pre></div></div>

<p>Now when you login, you’ll get a blank prompt, although I wouldn’t necessarily recommend it because it’s useful to see the last login to the system for security reasons. This is my prompt now:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Last <span style="color: #c20cb9; font-weight: bold;">login</span>: Wed Jul  <span style="color: #000000;">8</span> <span style="color: #000000;">17</span>:05:<span style="color: #000000;">12</span> <span style="color: #000000;">2009</span> from 192.168.2.3
OMG<span style="color: #000000; font-weight: bold;">!!</span> You killed kenny<span style="color: #000000; font-weight: bold;">!</span> You BASTARD<span style="color: #000000; font-weight: bold;">!</span>
&nbsp;
             _..-<span style="color: #ff0000;">&quot;&quot;</span><span style="color: #ff0000;">&quot;&quot;</span>-.._
           .<span style="color: #ff0000;">'            '</span>.
          <span style="color: #000000; font-weight: bold;">/</span>     _...._     \
         <span style="color: #000000; font-weight: bold;">/</span>  ,=<span style="color: #ff0000;">&quot;;_.''._;&quot;</span>=,  \
        ;  <span style="color: #000000; font-weight: bold;">/</span>  <span style="color: #000000; font-weight: bold;">/</span>  <span style="color: #000000; font-weight: bold;">`</span>\<span style="color: #000000; font-weight: bold;">/`</span>  \  \  ;
        <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #ff0000;">'/\'</span>  <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>
        <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>  \..<span style="color: #ff0000;">'  '</span>..<span style="color: #000000; font-weight: bold;">/</span>  <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #000000; font-weight: bold;">|</span>
         ;  \  \      <span style="color: #000000; font-weight: bold;">/</span> .<span style="color: #ff0000;">'  ;
          \  '</span>._-.__.-_.<span style="color: #ff0000;">'  /
          /'</span>.   <span style="color: #000000; font-weight: bold;">``|</span>\<span style="color: #000000; font-weight: bold;">``</span>   .<span style="color: #ff0000;">'\
         /   `'</span>-..<span style="color: #000000; font-weight: bold;">/</span>.<span style="color: #7a0874; font-weight: bold;">&#41;</span>.-<span style="color: #ff0000;">'`   \
        |_                  _|
       (  \                /  )
        '</span>-<span style="color: #000000; font-weight: bold;">/</span>                \-<span style="color: #ff0000;">'
          |________________|
          (________.________)
&nbsp;
root@localhost:~#</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/how-to-change-ssh-welcome-message-on-linux_164.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Compaq ML and DL series CompaqSmartArray driver problem</title>
		<link>http://ersinacar.com/compaq-ml-and-dl-series-compaqsmartarray-driver-problem_157.html</link>
		<comments>http://ersinacar.com/compaq-ml-and-dl-series-compaqsmartarray-driver-problem_157.html#comments</comments>
		<pubDate>Fri, 03 Jul 2009 15:50:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[compaq]]></category>
		<category><![CDATA[dl]]></category>
		<category><![CDATA[ml]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[smartarray]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=157</guid>
		<description><![CDATA[If you have problem with installation on compaq DL or ML servers (i have a ML370) with CompaqSmartArray Raid card, You can&#8217;t install ubuntu with normal way; you must use highway 
Ok here we go;

1st of all you need to make a custom CD ( You can use this one too http://skydisc.de/downloads/ubuntufeistysmartarray.iso)
To create the custom [...]]]></description>
			<content:encoded><![CDATA[<p>If you have problem with installation on compaq DL or ML servers (i have a ML370) with CompaqSmartArray Raid card, You can&#8217;t install ubuntu with normal way; you must use highway <img src='http://ersinacar.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
Ok here we go;<br />
<span id="more-157"></span><br />
1st of all you need to make a custom CD ( You can use this one too <a href="http://skydisc.de/downloads/ubuntufeistysmartarray.iso">http://skydisc.de/downloads/ubuntufeistysmartarray.iso</a>)</p>
<p>To create the custom CD…..</p>
<p>Mount the install…</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>scd0 <span style="color: #000000; font-weight: bold;">/</span>cdrom</pre></div></div>

<p>Copy the CD.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>cd-image
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-r</span> <span style="color: #000000; font-weight: bold;">/</span>cdrom<span style="color: #000000; font-weight: bold;">/*</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>cd-image
<span style="color: #c20cb9; font-weight: bold;">cp</span> –r <span style="color: #000000; font-weight: bold;">/</span>cdrom<span style="color: #000000; font-weight: bold;">/</span>.disk <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>cd-image</pre></div></div>

<p>Extract the initrd.gz from the cd image</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> extract
<span style="color: #7a0874; font-weight: bold;">cd</span> extract
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">zcat</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>cd-image<span style="color: #000000; font-weight: bold;">/</span>install<span style="color: #000000; font-weight: bold;">/</span>initrd.gz <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cpio</span> <span style="color: #660033;">-i</span></pre></div></div>

<p>Delete the modules in sym53c8xx_2 directory</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">rm</span> –rf .<span style="color: #000000; font-weight: bold;">/</span>extract<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>modules<span style="color: #000000; font-weight: bold;">/</span>2.6.20-<span style="color: #000000;">15</span>-generic<span style="color: #000000; font-weight: bold;">/</span>kernel<span style="color: #000000; font-weight: bold;">/</span>drivers<span style="color: #000000; font-weight: bold;">/</span>scsi<span style="color: #000000; font-weight: bold;">/</span>sym53c8xx_2</pre></div></div>

<p>Repack the modified files.</p>
<p>Cd back to to your extract directory</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cpio</span> <span style="color: #660033;">-o</span> <span style="color: #660033;">--format</span>=<span style="color: #ff0000;">'newc'</span> <span style="color: #000000; font-weight: bold;">|</span>   <span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #660033;">-9</span> <span style="color: #000000; font-weight: bold;">&gt;</span> ~<span style="color: #000000; font-weight: bold;">/</span>initrd.gz.new</pre></div></div>

<p>Put the new file into our CD replacing the old one.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> ~<span style="color: #000000; font-weight: bold;">/</span>initrd.gz.new <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>cd-image<span style="color: #000000; font-weight: bold;">/</span>install<span style="color: #000000; font-weight: bold;">/</span>initrd.gz</pre></div></div>

<p>Now create the iso image.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
<span style="color: #007800;">IMAGE</span>=custom.iso
<span style="color: #007800;">BUILD</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>cd-image<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
mkisofs <span style="color: #660033;">-r</span> <span style="color: #660033;">-V</span> <span style="color: #ff0000;">&quot;Custom Ubuntu Install CD&quot;</span> \
            <span style="color: #660033;">-cache-inodes</span> \
            <span style="color: #660033;">-J</span> <span style="color: #660033;">-l</span> <span style="color: #660033;">-b</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>isolinux.bin \
            <span style="color: #660033;">-c</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>boot.cat <span style="color: #660033;">-no-emul-boot</span> \
            <span style="color: #660033;">-boot-load-size</span> <span style="color: #000000;">4</span> <span style="color: #660033;">-boot-info-table</span> \
            <span style="color: #660033;">-o</span> <span style="color: #007800;">$IMAGE</span> <span style="color: #007800;">$BUILD</span></pre></div></div>

<p>Burn the image to CD and you should be able to install to your Compaq Smart Array controller.</p>
<p><strong>Installation</strong></p>
<p>1. Boot the install CD. At the splash screen hit [esc] to get the boot: prompt and enter: <strong>expert</strong> as the only option.</p>
<p>2. Do all the steps up to &#038; including &#8220;<strong>Install the Base System</strong>&#8221;</p>
<p>3. After installing the Base System, hit <strong>Alt-F2</strong> and enter the console.</p>
<p>4. type: </p>
<p>echo &#8220;cpqarray&#8221; >>/target/etc/mkinitramfs/modules<br />
*it can be<br />
echo &#8220;cpqarray&#8221; >>/target/misc/mkinitramfs/modules<br />
or<br />
echo &#8220;cpqarray&#8221; >>/target/etc/modules<br />
(You must find it out it can be diffrent by versions)<br />
- check to see which one your system is trying to use.</p>
<p>5. Exit the console. Press <strong>Alt+F1</strong> to return to the install.</p>
<p>6. Continue the installation steps as normal.</p>
<p><strong>Networking and Upgrade version after installation</strong><br />
You can check <a href="https://help.ubuntu.com/9.04/serverguide/C/network-configuration.html">this</a> page for network stuff<br />
you must check <a href="https://help.ubuntu.com/community/GutsyUpgrades">this</a> page for upgrading</p>
<p><strong>Don&#8217;t forget</strong><br />
Your old version&#8217;s /etc/apt/sources.list is wrong you must change it like this</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">deb http:<span style="color: #000000; font-weight: bold;">//</span>old-releases.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> feisty main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>old-releases.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> feisty-updates main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>old-releases.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> feisty-security main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>old-releases.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> feisty-backports main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>old-releases.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> feisty-backports main<span style="color: #000000; font-weight: bold;">/</span>debian-installer
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>old-releases.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> feisty-backports main restricted universe multiverse</pre></div></div>

<p>P.S. there is a bug about update-manager if you get an error until updating version you must<br />
change this file <strong>/var/lib/update-manager/meta-release</strong></p>
<p>herefore (on Feisty), edit /var/lib/update-manager/meta-relase and just replace all occurences of:</p>
<p>http://archive.ubuntu.com/ubuntu/dists/gutsy/</p>
<p>with</p>
<p>http://old-releases.ubuntu.com/ubuntu/dists/gutsy/</p>
]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/compaq-ml-and-dl-series-compaqsmartarray-driver-problem_157.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find the size of a directory and free space in linux</title>
		<link>http://ersinacar.com/how-to-find-the-size-of-a-directory-and-free-space_153.html</link>
		<comments>http://ersinacar.com/how-to-find-the-size-of-a-directory-and-free-space_153.html#comments</comments>
		<pubDate>Wed, 01 Jul 2009 12:35:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=153</guid>
		<description><![CDATA[This article explains 2 simple commands that most people want to know when they are using Linux. You can find the size of a directory and find the amount of free space, which is on your computer. The command you use to specify the directory size is &#8220;du&#8221;. And, to the free space you can [...]]]></description>
			<content:encoded><![CDATA[<p>This article explains 2 simple commands that most people want to know when they are using Linux. You can find the size of a directory and find the amount of free space, which is on your computer. The command you use to specify the directory size is &#8220;du&#8221;. And, to the free space you can &#8220;df.&#8221;</p>
<p>All information in this article can be found in the man pages for du and df. In case you get bored reading the man pages, and you want your work quickly, then this article is for you.<br />
<span id="more-153"></span><br />
<strong>&#8216;du&#8217; &#8211; find the size of a directory</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">du</span></pre></div></div>

<p>Enter the above at the command prompt, you can view a list of directories in the current directory with their sizes. The last line of output gives you the size of the current directory including subdirectories. The size given the size of the files and directories in the current directory and all its subdirectories. Note that by default are the size in kilobytes.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">du</span> <span style="color: #000000; font-weight: bold;">/</span> home <span style="color: #000000; font-weight: bold;">/</span> david</pre></div></div>

<p>The above command would be the directory, size of the directory / home / david</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$du</span>  <span style="color: #660033;">-h</span></pre></div></div>

<p>This command gives you a better outcome than standard. The option &#8220;-h&#8221; stands for the human-readable format. So that the size of the files and directories are this time with a suffix &#8216;K&#8217; if its kilobytes and &#8220;M&#8221; if its Megabytes and &#8216;G&#8217;, if its gigabytes.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$du</span> <span style="color: #660033;">-ah</span></pre></div></div>

<p>This command would be in his performance, not just the directories, but also all the files in the current directory. Note that &#8220;you&#8221; always counts all files and directories, with the final size in the last line. But the &#8220;-a&#8221; shows the file name along with the directory name in the output. &#8216;-h&#8217; is re-readable form.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$du</span> <span style="color: #660033;">-c</span></pre></div></div>

<p>This gives you a large sum in the last line of output. So, if your directory is 30MB the last 2 lines of output would be</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">30M.
30M total</pre></div></div>

<p>In the first line will be the default last line of the &#8220;du&#8221; output, indicating the size of the list and a further display of the same size, followed by the string &#8220;Total&#8221;. This is useful if you run this command with the command grep only the final size of a directory, as shown below.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">du</span> <span style="color: #660033;">-ch</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> total</pre></div></div>

<p>This would have only one line in the output shows the size of the current directory including all subdirectories.</p>
<p>Note: If you are not familiar with the lines (around the above command possible) refer to Article No. 24 Grep is one of the most important commands in Unix. See Rule No. 25 to learn more about grep.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$du</span> <span style="color: #660033;">-s</span></pre></div></div>

<p>This shows a summary of the directory size. It is the easiest way to know the size of the current directory.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$du</span> <span style="color: #660033;">-S</span></pre></div></div>

<p>This would increase the size of the current directory without the size of the subdirectories in that directory. So it basically shows the total size of all files in the current directory.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$du</span> <span style="color: #660033;">--exculde</span> = mp3</pre></div></div>

<p>The above command would be the size of the current directory with all subdirectories, but it would make all files with the given pattern in their filenames. Thus in the above case, if it happens, all MP3 files in the current directory or its subdirectories, their size is not taken into account when calculating the total list size.</p>
<p><strong>&#8216;df&#8217; &#8211; finding the disk free space / disk usage</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$df</span></pre></div></div>

<p>Enter the above is a table consisting of 6 columns. All columns are very easy to understand. Remember that the &#8220;size&#8221;, &#8220;Used&#8221; and &#8220;free&#8221; columns use kilobytes as a unit. The &#8220;Use% column shows the use as a percentage, which is also very useful.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$df</span> <span style="color: #660033;">-h</span></pre></div></div>

<p>Shows the same performance as the previous one, but the command &#8220;-h&#8221; shows human-readable format. Therefore, instead of kilobytes as the unit of output would have been &#8220;M&#8221; for megabytes and &#8220;G&#8221; for gigabytes.</p>
<p>The majority of users are not on the other parameters, which are to &#8220;df&#8221;. So I will not discuss.</p>
<p>I will again show you an example that I am on my computer. I have actually saved this as a script called &#8220;use&#8221; because I think it often.</p>
<p>Example:</p>
<p>I have my Linux installation on / dev/hda1 is mounted and I have my Windows partitions as well (by default every time Linux boots). So &#8216;df&#8217; default shows me the disk usage of my Linux and Windows partitions. And I&#8217;m only in the hard disk using the Linux partitions. That is what I use:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$df</span>-h <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #000000; font-weight: bold;">/</span> dev<span style="color: #000000; font-weight: bold;">/</span>hda1 <span style="color: #000000; font-weight: bold;">|</span> cut-c <span style="color: #000000;">41</span>-<span style="color: #000000;">43</span></pre></div></div>

<p>This command displays the following on my computer</p>
<p>45%</p>
<p>Basically, this command &#8220;df&#8221; which uses all the disk partitions and then extracts the lines with / dev/hda1, because I am only in this. Then cut the characters from the 41st to 43 Column, since the columns, the use in%, that is what I want.</p>
]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/how-to-find-the-size-of-a-directory-and-free-space_153.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to convert linux timestamp to readable date in PHP</title>
		<link>http://ersinacar.com/how-to-convert-linux-timestamp-to-readable-date-in-php_145.html</link>
		<comments>http://ersinacar.com/how-to-convert-linux-timestamp-to-readable-date-in-php_145.html#comments</comments>
		<pubDate>Tue, 02 Jun 2009 14:36:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[timestamp]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=145</guid>
		<description><![CDATA[Another simple trick;

$timestamp=&#34;1243949621&#34;;
echo  date&#40;&#34;d-m-Y&#34;, $timestamp&#41;;  //02-06-2009

]]></description>
			<content:encoded><![CDATA[<p>Another simple trick;</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$timestamp</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1243949621&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span>  <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;d-m-Y&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$timestamp</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">//02-06-2009</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/how-to-convert-linux-timestamp-to-readable-date-in-php_145.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copy entrie directories&#8217; content in PHP</title>
		<link>http://ersinacar.com/copy-entrie-directories-content-in-php_142.html</link>
		<comments>http://ersinacar.com/copy-entrie-directories-content-in-php_142.html#comments</comments>
		<pubDate>Tue, 02 Jun 2009 10:06:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[dir]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[mkdir]]></category>
		<category><![CDATA[opendir]]></category>
		<category><![CDATA[readdir]]></category>

		<guid isPermaLink="false">http://ersinacar.com/?p=142</guid>
		<description><![CDATA[Here&#8217;s an easy to use function to copy entire directories

function dir_copy&#40;$src,$dst&#41; &#123;
    $dir = opendir&#40;$src&#41;;
    @mkdir&#40;$dst&#41;;
    while&#40;false !== &#40; $file = readdir&#40;$dir&#41;&#41; &#41; &#123;
        if &#40;&#40; $file != '.' &#41; &#38;&#38; &#40; $file != '..' &#41;&#41; &#123;
   [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s an easy to use function to copy entire directories</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> dir_copy<span style="color: #009900;">&#40;</span><span style="color: #000088;">$src</span><span style="color: #339933;">,</span><span style="color: #000088;">$dst</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$dir</span> <span style="color: #339933;">=</span> <span style="color: #990000;">opendir</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$src</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #339933;">@</span><span style="color: #990000;">mkdir</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dst</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">false</span> <span style="color: #339933;">!==</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$file</span> <span style="color: #339933;">=</span> <span style="color: #990000;">readdir</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dir</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$file</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'.'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$file</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'..'</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">is_dir</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$src</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                dir_copy<span style="color: #009900;">&#40;</span><span style="color: #000088;">$src</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$file</span><span style="color: #339933;">,</span><span style="color: #000088;">$dst</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #990000;">copy</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$src</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$file</span><span style="color: #339933;">,</span><span style="color: #000088;">$dst</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #990000;">closedir</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dir</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ersinacar.com/copy-entrie-directories-content-in-php_142.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
