<?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>KNYKSL.COM v3 &#187; PHP</title>
	<atom:link href="http://www.knyksl.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.knyksl.com</link>
	<description>Ali Okan YÜKSEL&#039;s homepage</description>
	<lastBuildDate>Wed, 25 Aug 2010 21:32:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>This is the demo version of CKFinder. Click here to visit our web site.</title>
		<link>http://www.knyksl.com/2009/10/this-is-the-demo-version-of-ckfinder-click-here-to-visit-our-web-site/</link>
		<comments>http://www.knyksl.com/2009/10/this-is-the-demo-version-of-ckfinder-click-here-to-visit-our-web-site/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 18:47:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.knyksl.com/?p=252</guid>
		<description><![CDATA[CKFinder kullanıyorsanız ve bu ifade; ckfinder/core/js dizininde yer alan ckfinder_gecko.js ckfinder_ie.js dosyasını düzenlemeniz gerekiyor. Kullandığım sürüm: CKFinder 1.4.1.1 qo+=&#8217;\75\x27\x3C\144\x69\166\x20\163\x74\x79\x6C\145\75\x22\x74\145\170\x74\55\x61\154\151\x67\156\x3A\40\143\145\156\x74\x65\x72\73\40\146\157\x6E\x74\x2D\x73\151\172\x65\x3A\x20\61\x36\160\170\x3B\x20\143\x6F\154\157\162\x3A\x20\x52\x65\x64\x3B\40\x70\141\x64\x64\x69\156\147\72\40\61\60\160\x78\73\40\x66\x6F\156\x74\x2D\x77\145\151\147\x68\164\x3A\40\142\157\x6C\x64\x22\76\x54\150\x69\163\x20\x69\x73\40\x74\150\145\x20\144\145\x6D\157\40\166\145\x72\163\x69\x6F\x6E\40\x6F\146\40\103\113\106\151\x6E\x64\145\x72\x2E\40\74\x61\x20\x68\162\145\x66\x3D\x22\x68\x74\164\x70\72\x2F\57\x77\167\x77\56\143\153\x66\x69\156\x64\x65\x72\56\x63\x6F\155\42\40\164\141\162\x67\x65\164\x3D\42\x5F\x62\x6C\x61\156\x6B\x22\40\163\164\171\x6C\145\75\42\x63\x6F\x6C\x6F\x72\72\40\102\154\x75\x65\42\x3E\103\x6C\151\143\x6B\x20\150\145\162\145\40\x74\157\40\x76\x69\x73\x69\x74\x20\x6F\165\162\x20\x77\x65\x62\40\163\151\164\145\74\57\141\76\x2E\40\x3C\151\x6E\160\x75\x74\40\x74\x79\160\x65\x3D\x22\142\x75\x74\x74\x6F\x6E\42\40\x76\141\154\x75\145\x3D\x22\x48\151\x64\145\x20\x4D\x65\x73\x73\x61\147\x65\x22\40\157\x6E\143\x6C\x69\x63\x6B\x3D\42\164\150\151\x73\56\160\x61\x72\145\x6E\164\x4E\157\144\145\x2E\x70\x61\162\x65\x6E\x74\x4E\x6F\x64\x65\56\x73\x74\x79\154\145\x2E\x64\x69\163\160\x6C\x61\x79\75\134\x27\156\157\156\x65\134\x27\73\x22\x20\x2F\x3E\74\x2F\144\x69\166\76\x27\73&#8242;; ckfinder_gecko.js   ckfinder_gecko.js_  ckfinder_ie.js]]></description>
			<content:encoded><![CDATA[<p>CKFinder kullanıyorsanız ve bu ifade;</p>
<p>ckfinder/core/js dizininde yer alan ckfinder_gecko.js ckfinder_ie.js dosyasını düzenlemeniz gerekiyor. Kullandığım sürüm: CKFinder 1.4.1.1</p>
<p>qo+=&#8217;\75\x27\x3C\144\x69\166\x20\163\x74\x79\x6C\145\75\x22\x74\145\170\x74\55\x61\154\151\x67\156\x3A\40\143\145\156\x74\x65\x72\73\40\146\157\x6E\x74\x2D\x73\151\172\x65\x3A\x20\61\x36\160\170\x3B\x20\143\x6F\154\157\162\x3A\x20\x52\x65\x64\x3B\40\x70\141\x64\x64\x69\156\147\72\40\61\60\160\x78\73\40\x66\x6F\156\x74\x2D\x77\145\151\147\x68\164\x3A\40\142\157\x6C\x64\x22\76\x54\150\x69\163\x20\x69\x73\40\x74\150\145\x20\144\145\x6D\157\40\166\145\x72\163\x69\x6F\x6E\40\x6F\146\40\103\113\106\151\x6E\x64\145\x72\x2E\40\74\x61\x20\x68\162\145\x66\x3D\x22\x68\x74\164\x70\72\x2F\57\x77\167\x77\56\143\153\x66\x69\156\x64\x65\x72\56\x63\x6F\155\42\40\164\141\162\x67\x65\164\x3D\42\x5F\x62\x6C\x61\156\x6B\x22\40\163\164\171\x6C\145\75\42\x63\x6F\x6C\x6F\x72\72\40\102\154\x75\x65\42\x3E\103\x6C\151\143\x6B\x20\150\145\162\145\40\x74\157\40\x76\x69\x73\x69\x74\x20\x6F\165\162\x20\x77\x65\x62\40\163\151\164\145\74\57\141\76\x2E\40\x3C\151\x6E\160\x75\x74\40\x74\x79\160\x65\x3D\x22\142\x75\x74\x74\x6F\x6E\42\40\x76\141\154\x75\145\x3D\x22\x48\151\x64\145\x20\x4D\x65\x73\x73\x61\147\x65\x22\40\157\x6E\143\x6C\x69\x63\x6B\x3D\42\164\150\151\x73\56\160\x61\x72\145\x6E\164\x4E\157\144\145\x2E\x70\x61\162\x65\x6E\x74\x4E\x6F\x64\x65\56\x73\x74\x79\154\145\x2E\x64\x69\163\160\x6C\x61\x79\75\134\x27\156\157\156\x65\134\x27\73\x22\x20\x2F\x3E\74\x2F\144\x69\166\76\x27\73&#8242;;</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">ckfinder_gecko.js   ckfinder_gecko.js_  ckfinder_ie.js</div>
]]></content:encoded>
			<wfw:commentRss>http://www.knyksl.com/2009/10/this-is-the-demo-version-of-ckfinder-click-here-to-visit-our-web-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP GD resim resize ve dosya yükleme örneği</title>
		<link>http://www.knyksl.com/2009/08/php-gd-resim-resize-ve-dosya-yukleme-ornegi/</link>
		<comments>http://www.knyksl.com/2009/08/php-gd-resim-resize-ve-dosya-yukleme-ornegi/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 14:03:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.knyksl.com/?p=197</guid>
		<description><![CDATA[Örnekte kullanılan kütüphane resize_lib.php dosyasını http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php adresinde bulabilirsiniz. ini_set&#40;'display_errors', 1&#41;; Include&#40;&#34;resize_lib.php&#34;&#41;; $uploadpath = &#34;./yuklemeler/&#34;; if&#40;$_FILES&#91;&#34;imaj1&#34;&#93;&#91;&#34;name&#34;&#93;!=&#34;&#34;&#41; &#123; if&#40;!preg_match&#40;&#34;/(jpg&#124;gif&#124;bmp)/&#34;,substr&#40;strtolower&#40;$_FILES&#91;&#34;imaj1&#34;&#93;&#91;&#34;name&#34;&#93;&#41;,-3&#41;&#41;&#41; die&#40;&#34;file extension problem!!&#34;&#41;; if&#40;move_uploaded_file&#40;$_FILES&#91;&#34;imaj1&#34;&#93;&#91;&#34;tmp_name&#34;&#93;,$uploadpath.strtolower&#40;$_FILES&#91;&#34;imaj1&#34;&#93;&#91;&#34;name&#34;&#93;&#41;&#41;&#41; print '&#60;script&#62;alert(&#34;uploaded!!&#34;);&#60;/script&#62;'; $image = new SimpleImage&#40;&#41;; $image-&#62;load&#40;$uploadpath.strtolower&#40;$_FILES&#91;&#34;imaj1&#34;&#93;&#91;&#34;name&#34;&#93;&#41;&#41;; $image-&#62;resizeToWidth&#40;250&#41;; $image-&#62;save&#40;$uploadpath.&#34;minik_&#34;.$_FILES&#91;&#34;imaj1&#34;&#93;&#91;&#34;name&#34;&#93;&#41;; &#125; print ' &#60;form name=&#34;yukle&#34; method=&#34;post&#34; action=&#34;&#34; enctype=&#34;multipart/form-data&#34;&#62; &#60;input type=&#34;file&#34; name=&#34;imaj1&#34; /&#62; &#60;input type=&#34;submit&#34; value=&#34;upload it!!&#34; /&#62; &#60;/form&#62; '; Dikkat edilmesi gereken noktalar, öneriler; dosya [...]]]></description>
			<content:encoded><![CDATA[<div style="width:100%;"><img class="alignnone" src="http://www.knyksl.com/file/phpsec.gif" alt="" width="256" height="256" /></div>
<div style="width:100%;">
Örnekte kullanılan kütüphane resize_lib.php dosyasını<br />
<a href="http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php">http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php</a> adresinde bulabilirsiniz.
</div>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'display_errors'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #b1b100;">Include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;resize_lib.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$uploadpath</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;./yuklemeler/&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;imaj1&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">!=</span><span style="color: #0000ff;">&quot;&quot;</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: #339933;">!</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/(jpg|gif|bmp)/&quot;</span><span style="color: #339933;">,</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;imaj1&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,-</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;file extension problem!!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">move_uploaded_file</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;imaj1&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;tmp_name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$uploadpath</span><span style="color: #339933;">.</span><span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;imaj1&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">print</span> <span style="color: #0000ff;">'&lt;script&gt;alert(&quot;uploaded!!&quot;);&lt;/script&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$image</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> SimpleImage<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$uploadpath</span><span style="color: #339933;">.</span><span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;imaj1&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">resizeToWidth</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">250</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">save</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$uploadpath</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;minik_&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;imaj1&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">print</span> <span style="color: #0000ff;">'
&lt;form name=&quot;yukle&quot; method=&quot;post&quot; action=&quot;&quot; enctype=&quot;multipart/form-data&quot;&gt;
&lt;input type=&quot;file&quot; name=&quot;imaj1&quot; /&gt;
&lt;input type=&quot;submit&quot; value=&quot;upload it!!&quot; /&gt;
&lt;/form&gt;
'</span><span style="color: #339933;">;</span></pre></div></div>

<p>Dikkat edilmesi gereken noktalar, öneriler;</p>
<ul>
<li>dosya yüklemesi söz konusu olduğunda form içinde enctype tanımı</li>
<li>resize özelliğinin sorunsuz çalışması için PHP&#8217;nin GD destekli kurulduğundan emin olun.</li>
<li>Güvenlik kaygısı nedeniyle, yükleme yaparken uzantı kontrolü yapmayı unutmayını</li>
<li>Dosya adlarının çakışmaması için md5(micro_time()) fonksiyonlardan faydalanabilirsiniz.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.knyksl.com/2009/08/php-gd-resim-resize-ve-dosya-yukleme-ornegi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
