<?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>Colovic Vladan &#187; PHP</title>
	<atom:link href="http://cvladan.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://cvladan.com</link>
	<description>Real life software experience</description>
	<lastBuildDate>Thu, 25 Sep 2008 03:54:18 +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>Logitech Revolution Mouse models and Firefox</title>
		<link>http://cvladan.com/2008/09/23/logitech-revolution-mouse-models-and-firefox/</link>
		<comments>http://cvladan.com/2008/09/23/logitech-revolution-mouse-models-and-firefox/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 00:48:55 +0000</pubDate>
		<dc:creator>cvladan</dc:creator>
				<category><![CDATA[CRM]]></category>
		<category><![CDATA[ISPConfig]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.cvladan.loc/?p=178</guid>
		<description><![CDATA[Type in address bar: about:config .
Then, after the warning screen, start typing in &#8220;Filter&#8221; field: mousewheel.withcontrolkey.action
The value of this field was, by default 3 (look at the explanation ), and you should set it to -1 to disable any functionality. This &#8220;Disable&#8221; value was not so obvious at first look. SO, to summarize:
Oh. I just [...]]]></description>
			<content:encoded><![CDATA[<p>Type in address bar: <a href="http://kb.mozillazine.org/About:config">about:config</a> .</p>
<p>Then, after the warning screen, start typing in &#8220;Filter&#8221; field: mousewheel.withcontrolkey.action</p>
<p>The value of this field was, by default 3 (look at the <a href="http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries#Mousewheel..2A">explanation</a> ), and you should set it to -1 to disable any functionality. This &#8220;Disable&#8221; value was not so obvious at first look. SO, to summarize:</p>
<p>Oh. I just found out that <a href="http://gmckinney.blogspot.com/2008/01/firefox-scroll-wheel-font-size-changer.html">someone is having the same problem</a> . Their solution is not really exact, but it will do the job.</p>
<pre class="brush: php">
array(&amp;amp;amp;$this, &#039;SetVariables&#039;);
array(&amp;amp;amp;$this, &#039;SetVariables&#039;);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://cvladan.com/2008/09/23/logitech-revolution-mouse-models-and-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hide versions from port and services scan (NMAP)</title>
		<link>http://cvladan.com/2008/09/11/hide-versions-from-port-and-services-scan-nmap/</link>
		<comments>http://cvladan.com/2008/09/11/hide-versions-from-port-and-services-scan-nmap/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 05:32:49 +0000</pubDate>
		<dc:creator>cvladan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.cvladan.com/misc/2008/09/11/hide-versions-from-port-and-services-scan-nmap/</guid>
		<description><![CDATA[I stumbled on some posts about scanning a site and detecting a server services versions. Someone pointed out a nmap tool, and I checked it against my own server. The result was not so good &#8211; Apache and ProFTPD reveled its versions. So, I was determined to change that &#8211; I want the least version [...]]]></description>
			<content:encoded><![CDATA[<p>I stumbled on some posts about scanning a site and detecting a server services versions. Someone pointed out a nmap tool, and I checked it against my own server. The result was not so good &#8211; Apache and ProFTPD reveled its versions. So, I was determined to change that &#8211; I want the least version information. The NMAP command is:</p>
<pre>nmap -sS -sV -O www.yourserver.com</pre>
<p>Secure and hide version information:</p>
<ul>
<li>Apache, configuration file, usually at /etc/httpd/conf/httpd.conf<br />
<a href="http://httpd.apache.org/docs/2.2/mod/core.html#servertokens"><code>ServerTokens ProductOnly<br />
</code></a><a href="http://httpd.apache.org/docs/2.2/mod/core.html#serversignature"><code>ServerSignature Off</code></a></li>
</ul>
<ul>
<li>ProFTPD, in configuration file, usually at /etc/proftpd.conf<br />
<a href="http://www.proftpd.org/docs/directives/linked/config_ref_ServerName.html"><code>ServerName "My FTP Server"</code></a><br />
<a href="http://www.proftpd.org/docs/directives/linked/config_ref_ServerIdent.html"><code>ServerIdent on "ProFTPD [version] Server (server name) [hostname]"</code></a></p>
<p>This means, enough is to set, but in Global section:<code></p>
<p>&lt;global&gt;<br />
ServerIdent on "Generic FTP Server"<br />
&lt;/global&gt;</code>And you can change the port, if you want.</li>
</ul>
<ul>
<li>OpenSSH, tcp/22, not possible to change banner but yous should change the port, disable root login, etc.</li>
</ul>
<ul>
<li>Telnet, tcp/23, I prefer to disable Telnet. If not, use this (change file /etc/issue.net)<br />
<code>mv /etc/issue.net /etc/issue.net-original<br />
echo "Windows Server 2008 (Microsoft)" &gt; /etc/issue.net</code></li>
</ul>
<ul>
<li>PHP, disable expose_php for security reasons in /etc/php.ini<br />
<code>expose_php = 'off'</code></li>
</ul>
<p>That&#8217;s about it. I believe there is more, and if someone wants to add something, just comment on this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://cvladan.com/2008/09/11/hide-versions-from-port-and-services-scan-nmap/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The effects of CSS minifying</title>
		<link>http://cvladan.com/2007/12/22/the-effects-of-css-minifying/</link>
		<comments>http://cvladan.com/2007/12/22/the-effects-of-css-minifying/#comments</comments>
		<pubDate>Sat, 22 Dec 2007 05:43:13 +0000</pubDate>
		<dc:creator>cvladan</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.cvladan.com/php/2007/12/22/the-effects-of-css-minifying/</guid>
		<description><![CDATA[I needed to implement some CSS compression, and minification, so I made some tests regarding the improvements.  The content is delivered by Apache&#8217;s GZIP deflate, so the only thing to check was the effect of putting all CSS in one file, and packing it afterwards. For me, the results were surprising.

Original file, after GZIP [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to implement some CSS compression, and minification, so I made some tests regarding the improvements.  The content is delivered by Apache&#8217;s GZIP deflate, so the only thing to check was the effect of putting all CSS in one file, and packing it afterwards. For me, the results were surprising.</p>
<ol>
<li>Original file, after GZIP (19 CSS files) &#8211; 22Kb</li>
<li>Just included into one big file &#8211; 17Kb</li>
<li>In one file, removed comments and newlines -11kb</li>
<li>One file, PHP cssTidy-ed &#8211; <em>low compression</em> &#8211; 10Kb</li>
<li>One file, PHP cssTidy-ed &#8211; <em>high compression</em> &#8211; 10Kb</li>
<li>One file, PHP cssTidy-ed &#8211; <em>highest compression</em> &#8211; 10Kb</li>
</ol>
<p>The most interesting part was a difference between 1. and 2. I&#8217;m not sure why this happened. The other curious thing is that basically cssTidy compression does not improve much (besides it does changed some margin that I noticed, and did not wanted).</p>
<p>My conclusion: packing all CSS in one file and removing comments and  newlines is quite enough.</p>
]]></content:encoded>
			<wfw:commentRss>http://cvladan.com/2007/12/22/the-effects-of-css-minifying/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Return values from included files</title>
		<link>http://cvladan.com/2007/12/22/return-values-from-included-files/</link>
		<comments>http://cvladan.com/2007/12/22/return-values-from-included-files/#comments</comments>
		<pubDate>Sat, 22 Dec 2007 01:41:52 +0000</pubDate>
		<dc:creator>cvladan</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.cvladan.com/php/2007/12/22/return-values-from-included-files/</guid>
		<description><![CDATA[Something I did not know, but when I found it on this post, then I just realized that is include somewhere in PHP manual, so I quote from original manual entry.
&#8220;If called from the global scope, then execution of the current     script file is ended. If the current script file was [...]]]></description>
			<content:encoded><![CDATA[<p>Something I did not know, but when I found it on <a href="http://www.ejeliot.com/blog/85">this post</a>, then I just realized that is include somewhere in PHP manual, so I quote from <a href="http://www.php.net/return">original manual entry</a>.</p>
<p>&#8220;If called from the global scope, then execution of the current     script file is ended. If the current script file was     <span class="function">include()</span>-ed or <span class="function">require()</span>-ed,     then control is passed back to the calling file. Furthermore, if     the current script file was <span class="function">include()</span>-ed, then     the value given to <span class="function">return()</span> will be returned as     the value of the <span class="function">include()</span> call. If     <span class="function">return()</span> is called from within the main script     file, then script execution ends.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://cvladan.com/2007/12/22/return-values-from-included-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
