<?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>Point47 &#187; Server</title>
	<atom:link href="http://point47.com/journal/category/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://point47.com/journal</link>
	<description>a web developer journal</description>
	<lastBuildDate>Sat, 19 Nov 2011 11:44:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Drepturi de upload mai mare cu .htaccess</title>
		<link>http://point47.com/journal/2008/11/drepturi-de-upload-mai-mare-cu-htaccess/</link>
		<comments>http://point47.com/journal/2008/11/drepturi-de-upload-mai-mare-cu-htaccess/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 13:01:29 +0000</pubDate>
		<dc:creator>Sorin</dc:creator>
				<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://point47.com/journal/?p=20</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://point47.com/journal/2008/11/drepturi-de-upload-mai-mare-cu-htaccess/' addthis:title='Drepturi de upload mai mare cu .htaccess '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>In mod normal PHP-ul e setat sa poti uploada fisiere de maxim 8MB(sau chiar doar 2MB). Poti schimba asta insa din php.ini: 12post_max_size = 40M upload_max_filesize = 40M .. dar asta inseamna sa dai drepturi la tot serverul sa poata incarca fisiere de pana in 40MB Dar daca vrei sa dai drepturi doar fisierelor dintr-un [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://point47.com/journal/2008/11/drepturi-de-upload-mai-mare-cu-htaccess/' addthis:title='Drepturi de upload mai mare cu .htaccess ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://point47.com/journal/2008/11/drepturi-de-upload-mai-mare-cu-htaccess/' addthis:title='Drepturi de upload mai mare cu .htaccess '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div><p>In mod normal PHP-ul e setat sa poti uploada fisiere de maxim 8MB(sau chiar doar 2MB).<br />
Poti schimba asta insa din php.ini:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">post_max_size = 40M<br />
upload_max_filesize = 40M</div></td></tr></tbody></table></div>
<p>.. dar asta inseamna sa dai drepturi la tot serverul sa poata incarca fisiere de pana in 40MB</p>
<p>Dar daca vrei sa dai drepturi doar fisierelor dintr-un anumit folder poti sa faci un fisier &#8220;.htaccess&#8221; si sa scrii urmatorul cod.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;FilesMatch &quot;\.(php)$&quot;&gt; <br />
&nbsp;php_value post_max_size &quot;40M&quot; <br />
&nbsp;php_value upload_max_filesize &quot;40M&quot; <br />
&lt;/FilesMatch&gt;</div></td></tr></tbody></table></div>
<p>Astfel toate fisierele din acel folder au dreptul de uploada fisiere de pana in 40mb.</p>
<p>Dar cred ca si codul asta e functional, daca vrei sa dai drepturi doar unui anumit fisier:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;Files &quot;upload.php&quot;&gt; <br />
&nbsp;php_value post_max_size &quot;40M&quot; <br />
&nbsp;php_value upload_max_filesize &quot;40M&quot; <br />
&lt;/FilesMatch&gt;</div></td></tr></tbody></table></div>
<p>sau doar pentru 2 fisiere:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;FilesMatch &quot;^(upload|multi_upload)\.php$&quot;&gt;<br />
&nbsp;php_value post_max_size &quot;40M&quot; <br />
&nbsp;php_value upload_max_filesize &quot;40M&quot; <br />
&lt;/FilesMatch&gt;</div></td></tr></tbody></table></div>
<p>! Daca aveti hosting cumparat pe undeva tebuie sa verificati mai intai daca sunt drepturi ca .htaccess-ul sa suprascrie setarile default.</p>
<img src="http://point47.com/journal/?ak_action=api_record_view&id=20&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://point47.com/journal/2008/11/drepturi-de-upload-mai-mare-cu-htaccess/' addthis:title='Drepturi de upload mai mare cu .htaccess ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://point47.com/journal/2008/11/drepturi-de-upload-mai-mare-cu-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download PDF vs. Open PDF</title>
		<link>http://point47.com/journal/2008/11/download-pdf-vs-open-pdf/</link>
		<comments>http://point47.com/journal/2008/11/download-pdf-vs-open-pdf/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 10:00:49 +0000</pubDate>
		<dc:creator>Sorin</dc:creator>
				<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://point47.com/journal/?p=11</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://point47.com/journal/2008/11/download-pdf-vs-open-pdf/' addthis:title='Download PDF vs. Open PDF '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div>Browserele se cam incapatineaza sa deschida pdf-urile in loc sa te lase sa le descarci pe calculator. Cea mai usoara rezolvare e sa pui urmatorul cod in fisierul .htacces in directorul de baza. (pe langa index.html/php) 1234&#60;FilesMatch &#34;\.(?i:pdf)$&#34;&#62; &#160; ForceType application/octet-stream &#160; Header set Content-Disposition attachment &#60;/FilesMatch&#62; Acum cand cineva da click pe link-ul unui [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://point47.com/journal/2008/11/download-pdf-vs-open-pdf/' addthis:title='Download PDF vs. Open PDF ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style " addthis:url='http://point47.com/journal/2008/11/download-pdf-vs-open-pdf/' addthis:title='Download PDF vs. Open PDF '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_counter addthis_pill_style"></a></div><p>Browserele se cam incapatineaza sa deschida pdf-urile in loc sa te lase sa le descarci pe calculator.<br />
Cea mai usoara rezolvare e sa pui urmatorul cod in fisierul .htacces in directorul de baza. (pe langa index.html/php)</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:610px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;FilesMatch &quot;\.(?i:pdf)$&quot;&gt;<br />
&nbsp; ForceType application/octet-stream<br />
&nbsp; Header set Content-Disposition attachment<br />
&lt;/FilesMatch&gt;</div></td></tr></tbody></table></div>
<p>Acum cand cineva da click pe link-ul unui PDF de pe site-ul tau o sa ii apara optiunea de Download si nu o sa il mai deschida direct in fereastra browserului.</p>
<img src="http://point47.com/journal/?ak_action=api_record_view&id=11&type=feed" alt="" /><div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://point47.com/journal/2008/11/download-pdf-vs-open-pdf/' addthis:title='Download PDF vs. Open PDF ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://point47.com/journal/2008/11/download-pdf-vs-open-pdf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

