<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Matthias Kerstner » Softwaredeveloper | kerstner.at</title>
	<atom:link href="http://www.kerstner.at/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kerstner.at</link>
	<description>Matthias Kerstner » Softwareentwickler</description>
	<lastBuildDate>Sat, 04 Feb 2012 10:22:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Custom Directory Listing by matthias.kerstner</title>
		<link>http://www.kerstner.at/de/2010/03/custom-directory-listing/#comment-221</link>
		<dc:creator>matthias.kerstner</dc:creator>
		<pubDate>Sat, 04 Feb 2012 10:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerstner.at/?p=360#comment-221</guid>
		<description>Hello Jayapal,

originally the custom directory listing script was only designed to be used for specific folders. Thus, basically the idea was to set the custom directoy listing script as index file in these folders.

Now, concerning your request to achieve custom directory listings using a script that resides in only one location I must say that this is a bit tricky. Let&#039;s assume you have the following folder structure:

&lt;ul&gt;
  &lt;li&gt;/root&lt;/li&gt;
  &lt;ul&gt;
    &lt;li&gt;/root/folder1&lt;/li&gt;
    &lt;li&gt;/root/folder2&lt;/li&gt;
    &lt;ul&gt;
      &lt;li&gt;/root/folder2/folder2_1&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/ul&gt;
&lt;/ul&gt;

Now what I understand from your comment is that you want to put your custom directory listing script in /root only and expect it to be executed when visitors try to get a directory listing for root/folder2_1 too. Correct?

If this is the case then you will have to work with &lt;strong&gt;mod_redirect&lt;/strong&gt; and an &lt;strong&gt;additional include file&lt;/strong&gt;. Thus, you have to redirect all requests to a base folder (e.g. /root, /root/folder1, ...) to the additional include script that in return will execute the custom directory listing script residing in /root. For this to work, your .htaccess in root will have to 

&lt;ul&gt;
  &lt;li&gt; - determine wheter a file or folder request has been made&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt; - if a file request has been made simply serve the file as usual&lt;/li&gt;
&lt;li&gt; - otherwise the custom directory listing script has to be executed&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;

&lt;br/&gt;
If a folder request has been made check if for the requested folder there exists the additional include file (referencing the custom directory listing file in /root). If this is the case simply serve it. 

Based on this approach you should achieve custom directory listings for sub folder without being forced to include your original custom directory listing script in every sub folder.

Hope that helps.</description>
		<content:encoded><![CDATA[<p>Hello Jayapal,</p>
<p>originally the custom directory listing script was only designed to be used for specific folders. Thus, basically the idea was to set the custom directoy listing script as index file in these folders.</p>
<p>Now, concerning your request to achieve custom directory listings using a script that resides in only one location I must say that this is a bit tricky. Let&#8217;s assume you have the following folder structure:</p>
<ul>
<li>/root</li>
</ul>
<ul>
<li>/root/folder1</li>
<li>/root/folder2</li>
</ul>
<ul>
<li>/root/folder2/folder2_1</li>
</ul>
<p>Now what I understand from your comment is that you want to put your custom directory listing script in /root only and expect it to be executed when visitors try to get a directory listing for root/folder2_1 too. Correct?</p>
<p>If this is the case then you will have to work with <strong>mod_redirect</strong> and an <strong>additional include file</strong>. Thus, you have to redirect all requests to a base folder (e.g. /root, /root/folder1, &#8230;) to the additional include script that in return will execute the custom directory listing script residing in /root. For this to work, your .htaccess in root will have to </p>
<ul>
<li> &#8211; determine wheter a file or folder request has been made</li>
</ul>
<ul>
<li> &#8211; if a file request has been made simply serve the file as usual</li>
<li> &#8211; otherwise the custom directory listing script has to be executed</li>
</ul>
<p>
If a folder request has been made check if for the requested folder there exists the additional include file (referencing the custom directory listing file in /root). If this is the case simply serve it. </p>
<p>Based on this approach you should achieve custom directory listings for sub folder without being forced to include your original custom directory listing script in every sub folder.</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Custom Directory Listing by Jayapal Chandran</title>
		<link>http://www.kerstner.at/de/2010/03/custom-directory-listing/#comment-220</link>
		<dc:creator>Jayapal Chandran</dc:creator>
		<pubDate>Fri, 03 Feb 2012 07:18:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerstner.at/?p=360#comment-220</guid>
		<description>custom directory listing script in apache/php in shared hosting
As we know that if we have enabled directory listing then all files and folders will be listed if we do not have index.* or default.*

I have used htaccess to auto prepend a php script thinking that it will run instead of the default directory script. but it works only for scripts like php and not for html or other extensions.

So here what i want is i want to do my custom directory listing but i don&#039;t want to put an index.php in all folders with my custom code... whereas i want to autoprepend my custom directory listing script in htaccess but this is not working...

so i want to run my custom script for directory listing

Besides, i am in a shared hosting so i cannot modify config files. htaccess is working.

so what is the way to do a custom directory listing?</description>
		<content:encoded><![CDATA[<p>custom directory listing script in apache/php in shared hosting<br />
As we know that if we have enabled directory listing then all files and folders will be listed if we do not have index.* or default.*</p>
<p>I have used htaccess to auto prepend a php script thinking that it will run instead of the default directory script. but it works only for scripts like php and not for html or other extensions.</p>
<p>So here what i want is i want to do my custom directory listing but i don&#8217;t want to put an index.php in all folders with my custom code&#8230; whereas i want to autoprepend my custom directory listing script in htaccess but this is not working&#8230;</p>
<p>so i want to run my custom script for directory listing</p>
<p>Besides, i am in a shared hosting so i cannot modify config files. htaccess is working.</p>
<p>so what is the way to do a custom directory listing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installation von Pdftk unter Windows 7 by weston.bassler</title>
		<link>http://www.kerstner.at/de/2011/07/install-pdftk-under-windows-7/#comment-217</link>
		<dc:creator>weston.bassler</dc:creator>
		<pubDate>Fri, 27 Jan 2012 15:22:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerstner.at/?p=800#comment-217</guid>
		<description>Thanks so much for this post. I had pdftk on XP and had no problems with the installation but I tried to install it on Win7 I would get the error &quot;This application has failed to start becuase libiconv2.dll was not found. Re-installing the application may fix this problem.”

The post with modifying the system variables saved my life. It now works on 7 as it did on XP. Thanks again for the post.  :grin:</description>
		<content:encoded><![CDATA[<p>Thanks so much for this post. I had pdftk on XP and had no problems with the installation but I tried to install it on Win7 I would get the error &#8220;This application has failed to start becuase libiconv2.dll was not found. Re-installing the application may fix this problem.”</p>
<p>The post with modifying the system variables saved my life. It now works on 7 as it did on XP. Thanks again for the post.  <img src='http://www.kerstner.at/wp-includes/images/smilies/icon_biggrin.gif' alt=':grin:' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Währungsumrechnung mit Zend_Currency und Anzeige des korrekten Währungssymbols by Vasim Shaikh</title>
		<link>http://www.kerstner.at/de/2011/12/currency-conversion-using-zend_currency/#comment-207</link>
		<dc:creator>Vasim Shaikh</dc:creator>
		<pubDate>Thu, 19 Jan 2012 09:05:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerstner.at/?p=970#comment-207</guid>
		<description>its actually a nice article..i was looking for..</description>
		<content:encoded><![CDATA[<p>its actually a nice article..i was looking for..</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installation von Pdftk unter Windows 7 by matthias.kerstner</title>
		<link>http://www.kerstner.at/de/2011/07/install-pdftk-under-windows-7/#comment-171</link>
		<dc:creator>matthias.kerstner</dc:creator>
		<pubDate>Fri, 06 Jan 2012 12:23:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerstner.at/?p=800#comment-171</guid>
		<description>Hello Issam,

to execute PdfTk from within PHP you need to call &lt;strong&gt;exec&lt;/strong&gt;&lt;sup&gt;1&lt;/sup&gt;, or &lt;strong&gt;passthru&lt;/strong&gt;&lt;sup&gt;2&lt;/sup&gt; depending on whether you need the data returned by PdfTk or not, e.g.

&lt;?php exec(&#039;pdftk.exe __some_more_arguments__&#039;); ?&gt;
&lt;?php passthru(&#039;pdftk.exe __some_more_arguments__&#039;); ?&gt;

PHP&#039;s exec/passthru will delegate the call to PdfTk. In case you are planning to use user defined variables in order to call PdfTk please make sure to use &lt;strong&gt;escapeshellarg&lt;/strong&gt;&lt;sup&gt;3&lt;/sup&gt; or &lt;/strong&gt;escapeshellcmd&lt;/strong&gt;&lt;sup&gt;4&lt;/sup&gt; to escape them in order to prohibit malicious input.

Hope that helps.

Links
[1] http://php.net/manual/en/function.exec.php 
[2] http://php.net/manual/en/function.passthru.php
[3] http://www.php.net/manual/en/function.escapeshellarg.php
[4] http://www.php.net/manual/en/function.escapeshellcmd.php</description>
		<content:encoded><![CDATA[<p>Hello Issam,</p>
<p>to execute PdfTk from within PHP you need to call <strong>exec</strong><sup>1</sup>, or <strong>passthru</strong><sup>2</sup> depending on whether you need the data returned by PdfTk or not, e.g.</p>
<p>< ?php exec('pdftk.exe __some_more_arguments__'); ?><br />
< ?php passthru('pdftk.exe __some_more_arguments__'); ?></p>
<p>PHP&#8217;s exec/passthru will delegate the call to PdfTk. In case you are planning to use user defined variables in order to call PdfTk please make sure to use <strong>escapeshellarg</strong><sup>3</sup> or escapeshellcmd<sup>4</sup> to escape them in order to prohibit malicious input.</p>
<p>Hope that helps.</p>
<p>Links<br />
[1] <a href="http://php.net/manual/en/function.exec.php" rel="nofollow">http://php.net/manual/en/function.exec.php</a><br />
[2] <a href="http://php.net/manual/en/function.passthru.php" rel="nofollow">http://php.net/manual/en/function.passthru.php</a><br />
[3] <a href="http://www.php.net/manual/en/function.escapeshellarg.php" rel="nofollow">http://www.php.net/manual/en/function.escapeshellarg.php</a><br />
[4] <a href="http://www.php.net/manual/en/function.escapeshellcmd.php" rel="nofollow">http://www.php.net/manual/en/function.escapeshellcmd.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installation von Pdftk unter Windows 7 by Issam</title>
		<link>http://www.kerstner.at/de/2011/07/install-pdftk-under-windows-7/#comment-170</link>
		<dc:creator>Issam</dc:creator>
		<pubDate>Thu, 05 Jan 2012 20:53:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerstner.at/?p=800#comment-170</guid>
		<description>Hi matthias.kerstner
thank you for the help, i think it work ;)
i just want to ask if you have an exemple to how to use php with pdftk :)

thank you</description>
		<content:encoded><![CDATA[<p>Hi matthias.kerstner<br />
thank you for the help, i think it work <img src='http://www.kerstner.at/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
i just want to ask if you have an exemple to how to use php with pdftk <img src='http://www.kerstner.at/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installation von Pdftk unter Windows 7 by matthias.kerstner</title>
		<link>http://www.kerstner.at/de/2011/07/install-pdftk-under-windows-7/#comment-148</link>
		<dc:creator>matthias.kerstner</dc:creator>
		<pubDate>Thu, 15 Dec 2011 19:39:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerstner.at/?p=800#comment-148</guid>
		<description>Hello queenvickitoria :razz: 

The error message you&#039;ve posted results from Pdftk not finding &lt;em&gt;libiconf2.dll&lt;/em&gt; in your PATH - which is nothing more than a list directories in which Windows (recursively) searches for required files.

Now to include the bin-directory in your PATH simply right click your &quot;Computer&quot;-icon on the desktop and select &quot;Properties&quot;. Then open the &quot;Advanced System Settings&quot; (Advanced-tab in the system properties window). There select &quot;Environment Variables&quot; which opens another window. In the lower area of this new window you have a list of so-called &quot;System variables&quot;, where you then select &quot;Path&quot; and click &quot;Edit&quot;. In the &quot;Variable value&quot; text field append the following text: &quot;&lt;em&gt;; C:\Program Files (x86)\pdftk\bin\&lt;/em&gt;&quot; (note the &quot;;&quot;). 

If you have installed PdfTk in a directoy different from &quot;&lt;em&gt;C:\Program Files (x86)\&lt;/em&gt;&quot; simply use this path but be sure to add the &quot;\bin\&quot; directory to it.

Once you&#039;ve added the bin-path to your PATH environment (and have saved your changes) you should be able to start PdfTk without any problems.

Hope that helps :smile:</description>
		<content:encoded><![CDATA[<p>Hello queenvickitoria <img src='http://www.kerstner.at/wp-includes/images/smilies/icon_razz.gif' alt=':razz:' class='wp-smiley' />  </p>
<p>The error message you&#8217;ve posted results from Pdftk not finding <em>libiconf2.dll</em> in your PATH &#8211; which is nothing more than a list directories in which Windows (recursively) searches for required files.</p>
<p>Now to include the bin-directory in your PATH simply right click your &#8220;Computer&#8221;-icon on the desktop and select &#8220;Properties&#8221;. Then open the &#8220;Advanced System Settings&#8221; (Advanced-tab in the system properties window). There select &#8220;Environment Variables&#8221; which opens another window. In the lower area of this new window you have a list of so-called &#8220;System variables&#8221;, where you then select &#8220;Path&#8221; and click &#8220;Edit&#8221;. In the &#8220;Variable value&#8221; text field append the following text: &#8220;<em>; C:\Program Files (x86)\pdftk\bin\</em>&#8221; (note the &#8220;;&#8221;). </p>
<p>If you have installed PdfTk in a directoy different from &#8220;<em>C:\Program Files (x86)\</em>&#8221; simply use this path but be sure to add the &#8220;\bin\&#8221; directory to it.</p>
<p>Once you&#8217;ve added the bin-path to your PATH environment (and have saved your changes) you should be able to start PdfTk without any problems.</p>
<p>Hope that helps <img src='http://www.kerstner.at/wp-includes/images/smilies/icon_smile.gif' alt=':smile:' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Installation von Pdftk unter Windows 7 by queenvickitoria</title>
		<link>http://www.kerstner.at/de/2011/07/install-pdftk-under-windows-7/#comment-147</link>
		<dc:creator>queenvickitoria</dc:creator>
		<pubDate>Wed, 14 Dec 2011 23:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerstner.at/?p=800#comment-147</guid>
		<description>I&#039;m sorry, I don&#039;t know much about computers, but I&#039;m trying to install and use pdftk.  I did want the official installation guide said and copied the files to c:\windows\system32, but when I went to start-&gt;run and type in pdftk, a box pops up and tells me &quot;This application has failed to start becuase libiconv2.dll was not found. Re-installing the application may fix this problem.&quot; But I&#039;ve put the libiconv2.dll file in C:\windows\system32. 
So I&#039;ve tried to follow what you suggest and have now put the whole folder in Program Files (x86), but I don&#039;t understand what you mmean by adding the bin-fold to the system PATH??  Could you explain it to me?  Thanks a bunch!!!!  queenvickitoriaREMOVETHIS@hotmail.com</description>
		<content:encoded><![CDATA[<p>I&#8217;m sorry, I don&#8217;t know much about computers, but I&#8217;m trying to install and use pdftk.  I did want the official installation guide said and copied the files to c:\windows\system32, but when I went to start-&gt;run and type in pdftk, a box pops up and tells me &#8220;This application has failed to start becuase libiconv2.dll was not found. Re-installing the application may fix this problem.&#8221; But I&#8217;ve put the libiconv2.dll file in C:\windows\system32.<br />
So I&#8217;ve tried to follow what you suggest and have now put the whole folder in Program Files (x86), but I don&#8217;t understand what you mmean by adding the bin-fold to the system PATH??  Could you explain it to me?  Thanks a bunch!!!!  <a href="mailto:queenvickitoriaREMOVETHIS@hotmail.com">queenvickitoriaREMOVETHIS@hotmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Zend_Date und MySQL&#8217;s datetime format by Family Vacation Ideas</title>
		<link>http://www.kerstner.at/de/2011/10/zend_date-and-mysqls-datetime-format/#comment-108</link>
		<dc:creator>Family Vacation Ideas</dc:creator>
		<pubDate>Wed, 16 Nov 2011 18:04:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerstner.at/?p=853#comment-108</guid>
		<description>These are impressive articles. Keep up the sunny handiwork.</description>
		<content:encoded><![CDATA[<p>These are impressive articles. Keep up the sunny handiwork.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Scrollbar in dijit.layout.ContentPane aktivieren by Delora Alipio</title>
		<link>http://www.kerstner.at/de/2011/05/activate-scrollbar-in-dijit-layout-contentpane/#comment-96</link>
		<dc:creator>Delora Alipio</dc:creator>
		<pubDate>Tue, 01 Nov 2011 14:23:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerstner.at/?p=760#comment-96</guid>
		<description>Beste Grüße aus Wien</description>
		<content:encoded><![CDATA[<p>Beste Grüße aus Wien</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Zend_Date und MySQL&#8217;s datetime format by matthias.kerstner</title>
		<link>http://www.kerstner.at/de/2011/10/zend_date-and-mysqls-datetime-format/#comment-94</link>
		<dc:creator>matthias.kerstner</dc:creator>
		<pubDate>Mon, 31 Oct 2011 20:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerstner.at/?p=853#comment-94</guid>
		<description>Hello Joe, 

thanks for your feedback. I have updated the entry to mention a problem when creating Zend_Date objects based on custom formats.

Best regards :smile:</description>
		<content:encoded><![CDATA[<p>Hello Joe, </p>
<p>thanks for your feedback. I have updated the entry to mention a problem when creating Zend_Date objects based on custom formats.</p>
<p>Best regards <img src='http://www.kerstner.at/wp-includes/images/smilies/icon_smile.gif' alt=':smile:' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Verzeichnisse rekursiv mittels PHP löschen/kopieren by Blaise</title>
		<link>http://www.kerstner.at/de/2011/10/delete-copy-directories-recursively-using-php/#comment-93</link>
		<dc:creator>Blaise</dc:creator>
		<pubDate>Mon, 31 Oct 2011 18:21:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerstner.at/?p=873#comment-93</guid>
		<description>Pretty insightful. Thanks!     </description>
		<content:encoded><![CDATA[<p>Pretty insightful. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Zend_Date und MySQL&#8217;s datetime format by Joe C</title>
		<link>http://www.kerstner.at/de/2011/10/zend_date-and-mysqls-datetime-format/#comment-92</link>
		<dc:creator>Joe C</dc:creator>
		<pubDate>Mon, 31 Oct 2011 17:51:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerstner.at/?p=853#comment-92</guid>
		<description>This was very useful, thanks :)</description>
		<content:encoded><![CDATA[<p>This was very useful, thanks <img src='http://www.kerstner.at/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Automatische Größenanpassung von Bildern mit TCPDF by matthias.kerstner</title>
		<link>http://www.kerstner.at/de/2011/07/auto-fit-images-onto-current-page-using-tcpdf/#comment-85</link>
		<dc:creator>matthias.kerstner</dc:creator>
		<pubDate>Mon, 08 Aug 2011 17:50:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerstner.at/?p=806#comment-85</guid>
		<description>Danke fürs Feedback :)</description>
		<content:encoded><![CDATA[<p>Danke fürs Feedback <img src='http://www.kerstner.at/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Automatische Größenanpassung von Bildern mit TCPDF by Conrad</title>
		<link>http://www.kerstner.at/de/2011/07/auto-fit-images-onto-current-page-using-tcpdf/#comment-84</link>
		<dc:creator>Conrad</dc:creator>
		<pubDate>Sun, 07 Aug 2011 13:36:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerstner.at/?p=806#comment-84</guid>
		<description>Schoener Blog, gefaellt mir sehr. Auch gute Themen.</description>
		<content:encoded><![CDATA[<p>Schoener Blog, gefaellt mir sehr. Auch gute Themen.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

