<?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>Kadir Özdemir</title>
	<atom:link href="http://www.skorp.eu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.skorp.eu</link>
	<description>Programlama, Güvenlik, Design ve hayatimdan kesintiler</description>
	<lastBuildDate>Wed, 25 Aug 2010 10:52:48 +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>Jquery Validation sonradan kural ekleme</title>
		<link>http://www.skorp.eu/2010/08/25/jquery-validation-sonradan-kural-ekleme/</link>
		<comments>http://www.skorp.eu/2010/08/25/jquery-validation-sonradan-kural-ekleme/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 09:54:02 +0000</pubDate>
		<dc:creator>Skorp</dc:creator>
				<category><![CDATA[Javascript/Ajax/Jquery]]></category>
		<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://www.skorp.eu/?p=426</guid>
		<description><![CDATA[Selamlar, ben genelde formlarimi client tarafinda Jquery Validate Plugin i ile kontrol ettitirim. Iki benzer formum var, ikincisinde ama baska alanlarda bulundugu icin onlari da ekstradan kontroll ettirmem gerekiyor. Tüm js kodunu kopyalayip yeniden yaza biliriz ama, o tabiki güzel olmaz. onun icin validator a yama yapalim. nasilmi iste böyle: ana validator dosyamiz : PLAIN [...]]]></description>
			<content:encoded><![CDATA[<p>Selamlar,<br />
ben genelde formlarimi client tarafinda <a href="http://docs.jquery.com/Plugins/Validation/">Jquery Validate Plugin</a> i ile kontrol ettitirim.<br />
Iki benzer formum var, ikincisinde ama baska alanlarda bulundugu icin onlari da ekstradan kontroll ettirmem gerekiyor.<br />
Tüm js kodunu kopyalayip yeniden yaza biliriz ama, o tabiki güzel olmaz.<br />
onun icin validator a yama yapalim. nasilmi iste böyle:<br />
ana validator dosyamiz : </p>
<div class="igBar"><span id="ljavascript-4"><a href="#" onclick="javascript:showCodeTxt('javascript-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-4">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'form#regit div div.element'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">append</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'&lt;div class=&quot;errormessage&quot; style=&quot;display:inline;&quot;&gt;&lt;/div&gt;'</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> validator = $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"form#regit"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">validate</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; ignore: <span style="color: #3366CC;">"input[type=hidden]"</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; rules: <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reg_email: <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; required: <span style="color: #003366; font-weight: bold;">true</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; email: <span style="color: #003366; font-weight: bold;">true</span>,</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; remote: <span style="color: #3366CC;">"/an/checkemail/"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reg_password: <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; required: <span style="color: #003366; font-weight: bold;">true</span>,</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; minlength:<span style="color: #CC0000;color:#800000;">4</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reg_password2:<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; required:<span style="color: #003366; font-weight: bold;">true</span>,</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; minlength:<span style="color: #CC0000;color:#800000;">4</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; equalTo:<span style="color: #3366CC;">"#reg_password"</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; agb: <span style="color: #3366CC;">"required"</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; messages: <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reg_email: <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; required: Message<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">"email_required"</span><span style="color: #66cc66;">&#93;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; email: Message<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">"email_notok"</span><span style="color: #66cc66;">&#93;</span>,</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; remote: Message<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">"email_exists"</span><span style="color: #66cc66;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reg_password: <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; required : Message<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">"pass_required"</span><span style="color: #66cc66;">&#93;</span>,</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; minlength: Message<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">"pass_length"</span><span style="color: #66cc66;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reg_password2: <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; required : Message<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">"pass_required"</span><span style="color: #66cc66;">&#93;</span>,</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; minlength: Message<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">"pass_length"</span><span style="color: #66cc66;">&#93;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; equalTo: Message<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">"pass_equal"</span><span style="color: #66cc66;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; agb:Message<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">"agb_required"</span><span style="color: #66cc66;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; success: <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>label<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>label<span style="color: #66cc66;">&#91;</span><span style="color: #CC0000;color:#800000;">0</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">htmlFor</span>==<span style="color: #3366CC;">"agb"</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label.<span style="color: #006600;">removeClass</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'error'</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">else</span> </div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label.<span style="color: #006600;">addClass</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"valid"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; errorPlacement: <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>error, element<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> </div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span> element.<span style="color: #000066; font-weight: bold;">is</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">":hidden"</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; element.<span style="color: #006600;">next</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">next</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">html</span><span style="color: #66cc66;">&#40;</span>error<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">else</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; element.<span style="color: #006600;">next</span><span style="color: #66cc66;">&#40;</span>$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'div.errormessage'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">html</span><span style="color: #66cc66;">&#40;</span>error<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
yama yaptigimiz dosya:</p>
<div class="igBar"><span id="ljavascript-5"><a href="#" onclick="javascript:showCodeTxt('javascript-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-5">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span>document<span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#reg_email'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">rules</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"add"</span>,<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; remote: <span style="color: #3366CC;">"/ag/checkemail/"</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#company'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">rules</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"add"</span>,<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; required: <span style="color: #003366; font-weight: bold;">true</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; minlength:<span style="color: #CC0000;color:#800000;">4</span>,</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; messages:<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; required:Message<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">"company_required"</span><span style="color: #66cc66;">&#93;</span>,</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; minlength: Message<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">"company_length"</span><span style="color: #66cc66;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#branch_id'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">rules</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"add"</span>,<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; required: <span style="color: #003366; font-weight: bold;">true</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; messages: <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; required: Message<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">"branch_required"</span><span style="color: #66cc66;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
<strong>#reg_email</strong> de remote adresini degistiriyoruz,<br />
ve iki extra kontrol alani daha ekliyoruz validatorumuza.</p>
<p>Bu satirlar bana özel: <strong>Message["email_required"]</strong> siz oralara kendi hata mesajlarinizi yaza bilirsiniz.</p>
<p>ps:<br />
bir alana tamamiyle baska kurallar eklemek icinse <em>remove</em> metodunu kullanarak ekli olan kurallari sile bilirsiniz.</p>
<div class="igBar"><span id="ljavascript-6"><a href="#" onclick="javascript:showCodeTxt('javascript-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-6">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'#reg_email'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">rules</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"remove"</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.skorp.eu/2010/08/25/jquery-validation-sonradan-kural-ekleme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jquery Dialog da Tinymce gösterme</title>
		<link>http://www.skorp.eu/2010/08/20/jquery-dialog-da-tinymce-gosterme/</link>
		<comments>http://www.skorp.eu/2010/08/20/jquery-dialog-da-tinymce-gosterme/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 13:04:38 +0000</pubDate>
		<dc:creator>Skorp</dc:creator>
				<category><![CDATA[Javascript/Ajax/Jquery]]></category>
		<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://www.skorp.eu/?p=421</guid>
		<description><![CDATA[Selamlar, cok kisa bir kod ekliyecegim lazim oldugunda herkez bula bilsin diye. Bugün iste ajax ile icerigini doldurdugum bir Jquery UI Dialog caminda Tinymce editorunu göstermem gerekiyordu. Bir kac gün önceden bu sorunla karsilacagimi bildigim icin Jquery türkiye Mailing liste bir mail atmistim, sagolsun Veysi Ertekin hemen cevab yazdi. Su Kodla ajaxla gelen bir dialogda [...]]]></description>
			<content:encoded><![CDATA[<p>Selamlar,<br />
cok kisa bir kod ekliyecegim lazim oldugunda herkez bula bilsin diye.</p>
<p>Bugün iste ajax ile icerigini doldurdugum bir Jquery UI Dialog caminda Tinymce editorunu göstermem gerekiyordu.<br />
Bir kac gün önceden bu sorunla karsilacagimi bildigim icin Jquery türkiye Mailing liste bir mail atmistim, sagolsun <strong>Veysi Ertekin</strong> hemen cevab yazdi.</p>
<p>Su Kodla ajaxla gelen bir dialogda tinymce göstere bilirsiniz.</p>
<div class="igBar"><span id="ljavascript-9"><a href="#" onclick="javascript:showCodeTxt('javascript-9'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-9">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">tinyMCE.<span style="color: #006600;">init</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; mode : <span style="color: #3366CC;">"textareas"</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; theme : <span style="color: #3366CC;">"simple"</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tinyMCE.<span style="color: #006600;">execCommand</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'mceAddControl'</span>, <span style="color: #003366; font-weight: bold;">false</span>, <span style="color: #3366CC;">"task"</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
dialog kodunun hemen altina bunu ekleyin tamamdir.<br />
<em>task</em> yazan yere kendi textareanizin idsini yazin;)</p>
<p>ps: form u benim gibi js/ajax ile gönderiyorsaniz, tinymce ozaman textarea ya yazilmasi gereken icerikleri iframe den kopyalamiyor, ajax postu göndermeden onun icin bu fonksiyonu da cagarin.</p>
<div class="igBar"><span id="ljavascript-10"><a href="#" onclick="javascript:showCodeTxt('javascript-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-10">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">tinyMCE.<span style="color: #006600;">triggerSave</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
kolay gelsin</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skorp.eu/2010/08/20/jquery-dialog-da-tinymce-gosterme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>APC kurulumu</title>
		<link>http://www.skorp.eu/2010/08/16/php-apc-kuralumu-installation/</link>
		<comments>http://www.skorp.eu/2010/08/16/php-apc-kuralumu-installation/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 11:36:12 +0000</pubDate>
		<dc:creator>Skorp</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.skorp.eu/?p=418</guid>
		<description><![CDATA[apc nedir: APC, alternatif PHP önbelleğidir. PHP betiklerini derlemek ve önbelleklemek için özgür, açık ve sağlam bir çalışma ortamı sağlamak adına tasarlandı. APC, yükü ağır olan sitelerde betiklerin çözümlenmesi ve derlenmesinden neredeyse tamamen kurtularak derlenmiş bir durumda önbelleklenmesi için imkan sunarak PHP'nin başarımının arttırılmasını sağlayacak bir yol olarak düşünüldü apc kurulumuna gecelim, öncelikle en son [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://docs.comu.edu.tr/howto/apache-compile-howto-phpext.html">apc nedir:</a><br />
APC, alternatif PHP önbelleğidir. PHP betiklerini derlemek ve önbelleklemek için özgür, açık ve sağlam bir çalışma ortamı sağlamak adına tasarlandı. APC, yükü ağır olan sitelerde betiklerin çözümlenmesi ve derlenmesinden neredeyse tamamen kurtularak derlenmiş bir durumda önbelleklenmesi için imkan sunarak PHP'nin başarımının arttırılmasını sağlayacak bir yol olarak düşünüldü</p>
<p>apc kurulumuna gecelim, öncelikle en son apc yi <a href="http://pecl.php.net/package/APC">buradan</a>  indirelim:</p>
<p><code>cd /tmp &#038;& wget http://pecl.php.net/get/APC</code></p>
<p>indirdigimiz dosyayi acalim:<br />
<code> tar xvfz APC</code></p>
<p>ardindan su satirlari calistiralim:<br />
<code>cd APC-3.1.4/<br />
phpize<br />
./configure --enable-apc-mmap --with-apxs2 --with-php-config=/usr/bin/php-config<br />
make &#038;& make install</code></p>
<p>ardindan php.ini yi acip <em>Dynamic Extensions</em> satirinin altina bunlari ekliyoruz:</p>
<p><code>extension="apc.so"<br />
apc.enabled=1<br />
apc.file_update_protection=2<br />
apc.optimization=0<br />
apc.shm_size=32<br />
apc.shm_segments=1<br />
apc.gc_ttl=7200<br />
apc.ttl=7200<br />
apc.num_files_hint=1024<br />
apc.enable_cli=0</code></p>
<p>ve son olarak apacheyi yeniden baslatiyoruz:<br />
<code>/etc/init.d/apache2 restart</code></p>
<p>Herseyi dogru yaptiysak phpinfo ya apc adli bir bölüm eklenmis olmali.</p>
<p>phpize icin suse de <em>php5-devel</em> paketi ve ubuntuda <em>php5-dev</em> paketi kurulu olmasi lazim.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skorp.eu/2010/08/16/php-apc-kuralumu-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>at ile ileri tarihde bir görev calistirma</title>
		<link>http://www.skorp.eu/2010/04/12/at-ile-ileri-tarihde-bir-gorev-calistirma/</link>
		<comments>http://www.skorp.eu/2010/04/12/at-ile-ileri-tarihde-bir-gorev-calistirma/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 10:52:18 +0000</pubDate>
		<dc:creator>Skorp</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.skorp.eu/?p=411</guid>
		<description><![CDATA[Bu yazimizida at ile ileri bir zamanda komut nasil calistirilir ona bakacagiz. Bana lazim olus sebebi yarin gece Server baska bir Datacentere tasinacak ondan kisa bir zaman önce Serveri kapatmam lazim. Bunun icin öncelikle atd yi kuralim: apt-get install at calistiralim: /etc/init.d/atd start ardindan calistirilicak olan komutu ve zamani yazalim: echo "/sbin/shutdown -h now" &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>Bu yazimizida at ile ileri bir zamanda komut nasil calistirilir ona bakacagiz.<br />
Bana lazim olus sebebi yarin gece Server baska bir Datacentere tasinacak ondan kisa bir zaman önce Serveri kapatmam lazim.</p>
<p>Bunun icin öncelikle atd yi kuralim:</p>
<blockquote><p>apt-get install at</p></blockquote>
<p>calistiralim:</p>
<blockquote><p>/etc/init.d/atd start</p></blockquote>
<p>ardindan calistirilicak olan komutu ve zamani yazalim:</p>
<blockquote><p>echo "/sbin/shutdown -h now" | at 22:15 13.05.2010</p></blockquote>
<p>ardindan atq komutu ile görevi dogru yapmismiyiz diye kontrol ede bilirsiniz.</p>
<blockquote><p>atq</p></blockquote>
<p>daha fazla bilgi icin <strong>man at</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.skorp.eu/2010/04/12/at-ile-ileri-tarihde-bir-gorev-calistirma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Certified Engineer</title>
		<link>http://www.skorp.eu/2010/04/10/zend-certified-engineer-kadir-oezdemir/</link>
		<comments>http://www.skorp.eu/2010/04/10/zend-certified-engineer-kadir-oezdemir/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 00:13:15 +0000</pubDate>
		<dc:creator>Skorp</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.skorp.eu/?p=407</guid>
		<description><![CDATA[Selamlar, persembe günü saat 11 de Almanyada Zend Zertifikasi sinavina girdim. Sinava iki günde PHP Architects's Zend PHP 5 Certification Study Guide kitabini okuyarak hazirlandim. Kitabi Zend in sayfasindan satin ala bilirsiniz yada Internetten ebook versiyonunu arayan buluyormus diye duydum Kitabin yaninda String ve Array fonksiyonlarinada php.net sayfasindan yeniden göz gecirin derim. Onun yaninda PHP [...]]]></description>
			<content:encoded><![CDATA[<p>Selamlar,</p>
<p>persembe günü saat 11 de Almanyada Zend Zertifikasi sinavina girdim.<br />
Sinava iki günde <em>PHP Architects's Zend PHP 5 Certification Study Guide</em> kitabini okuyarak hazirlandim.<br />
Kitabi  <a href="http://www.zend.com">Zend</a> in sayfasindan satin ala bilirsiniz yada Internetten ebook versiyonunu arayan buluyormus diye duydum <img src='http://www.skorp.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Kitabin yaninda String ve Array fonksiyonlarinada php.net sayfasindan yeniden göz gecirin derim.<br />
Onun yaninda PHP de XML ile hasir nesir degilseniz, php.net sayfasinda o bölümüde iyice inceleyin.<br />
Sinav gercekten düsünüldügü gibi kolay degil, sorular cok sasirtici, sorulari iyi okuyup ona göre cevap vermek lazim.<br />
Sinavda 90 dakikada tam 70 soru cevaplamaniz gerekiyor.<br />
Sinavdan sonra hemen basarip basaramadiginizi ögreniyorsunuz, tek kötü olan kac puan ile basarip/basaramadiginizi söylememeleri.<br />
Ben sahsen hangi soruya yanlis cevap vermisim görmek isterdim.<br />
Cok kolaylastirilmis sekli olsada, Sinav sorulari hemen hemen nasil <a href="http://shiflett.org/blog/2005/apr/zend-certification-self-test">Chris Shiflett</a>'in  sayfasinda bir bakin.</p>
<p>Sinav hakkinda sorusu olan Mesaj yazsin yada mail atsin.<br />
Zend Yellow Pages deki yerim:</p>
<p><a href="http://zend.com/zce.php?c=ZEND013622&#038;r=235007329" target="_blank"><img src="http://www.skorp.eu/pics/php5-zce-logo-new.gif" alt="Zend Certified Engineer" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.skorp.eu/2010/04/10/zend-certified-engineer-kadir-oezdemir/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opera 10.50 yayinlandi</title>
		<link>http://www.skorp.eu/2010/03/02/en-hizli-browser-hangisi/</link>
		<comments>http://www.skorp.eu/2010/03/02/en-hizli-browser-hangisi/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 09:52:40 +0000</pubDate>
		<dc:creator>Skorp</dc:creator>
				<category><![CDATA[Bilgisayar & Internet]]></category>
		<category><![CDATA[opera]]></category>

		<guid isPermaLink="false">http://www.skorp.eu/?p=405</guid>
		<description><![CDATA[Evet kisa bir süredir yayinlanmasini bekledigim sürüm sonunda yayinlandi, suan icin sadece Windows icin yayinlandi, Mac, Linux, Solaris ve FreeBsd versiyonlari yolda. Yeni Javascript-Engine ile tam 7 kat daha hizlanan opera, gelistiricilerine göre suanda dünyadaki en hizli Browser durumunda. Windows 7 ve Html5 destegi gelistirildi ve onun yaninda birde private Tab lar eklendi. Private Tab [...]]]></description>
			<content:encoded><![CDATA[<p>Evet kisa bir süredir yayinlanmasini bekledigim sürüm sonunda yayinlandi, suan icin sadece Windows icin yayinlandi, Mac, Linux, Solaris ve FreeBsd  versiyonlari yolda.</p>
<p>Yeni Javascript-Engine ile <strong>tam 7 </strong>kat daha hizlanan opera, gelistiricilerine göre suanda dünyadaki en  <strong>hizli</strong> Browser durumunda.</p>
<p>Windows 7 ve Html5 destegi gelistirildi ve onun yaninda birde private Tab lar eklendi.<br />
Private Tab da ziyaret edilen sayfalar iz birakmiyor, Tabin kapanmasiyla o sayfaya ait tüm izler yok ediliyor.</p>
<p>Ikinici ayin basinda yayinlanmis bir benchmark testi asagida.</p>
<p><img src="http://images.betanews.com/media/4480.jpg" alt="opera 10.50 benchmark" /></p>
<p>Resimdede görüldügü gibi, opera IE den tam <strong>17.7</strong> kat daha hizli calisiyor.<br />
Herkezin sevgilisi olan <em>Firefox</em> uda ikiye katlamis durumda.</p>
<p>FAzla dicek bir sey yok aslinda, lider kim belli.<br />
Gelistirme hizli, Browser hizli daha bir insan ne isterki <img src='http://www.skorp.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Opera'yi  indirmek icin <a href="www.opera.com">www.opera.com</a> ziyaret ede bilirsiniz.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skorp.eu/2010/03/02/en-hizli-browser-hangisi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>google den Dns servisi</title>
		<link>http://www.skorp.eu/2009/12/15/google-den-dns-servisi/</link>
		<comments>http://www.skorp.eu/2009/12/15/google-den-dns-servisi/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 14:51:07 +0000</pubDate>
		<dc:creator>Skorp</dc:creator>
				<category><![CDATA[Bilgisayar & Internet]]></category>
		<category><![CDATA[Genel]]></category>

		<guid isPermaLink="false">http://www.skorp.eu/?p=403</guid>
		<description><![CDATA[haberi duyali bir kac hafta oldu aslinda yazmaya yeni vakit buldum. Google artik genel bir DNS servisi sunuyor. Amaci bulunan yeni fikirlerle DNS isteklerini daha cabuk sunmasi. Servis diger google servislerinde oldugu gibi suan icin sadece deney olarak adlandirilmis. Daha hizli cevaplar icin öncelikle clevere Caching mekanizmasini kullaniliyor. Böylelikle DNS kaydi gecersiz (TTL) kilinmadan DNS-Server [...]]]></description>
			<content:encoded><![CDATA[<p>haberi duyali bir kac hafta oldu aslinda yazmaya yeni vakit buldum.<br />
Google artik genel bir DNS servisi sunuyor. Amaci bulunan yeni fikirlerle DNS isteklerini daha cabuk sunmasi.<br />
Servis diger google servislerinde oldugu gibi suan icin sadece deney olarak adlandirilmis.<br />
Daha hizli cevaplar icin öncelikle clevere Caching mekanizmasini kullaniliyor. Böylelikle DNS kaydi gecersiz (TTL) kilinmadan DNS-Server kayit bilgilerini yeniliyor ve istek geldiginde google zaten hangi adresi döndürecegini biliyor ondan yeni bir istek yapmasina gerek yok.</p>
<p>daha genis bilgi <a href="http://code.google.com/intl/de-DE/speed/public-dns/docs/intro.html">burada</a>.</p>
<p>Google in DNS Adresleri ise:<br />
8.8.8.8<br />
8.8.4.4</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skorp.eu/2009/12/15/google-den-dns-servisi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opera Unite</title>
		<link>http://www.skorp.eu/2009/12/03/opera-unite-nedir-ne-ise-yarar/</link>
		<comments>http://www.skorp.eu/2009/12/03/opera-unite-nedir-ne-ise-yarar/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 14:42:49 +0000</pubDate>
		<dc:creator>Skorp</dc:creator>
				<category><![CDATA[Bilgisayar & Internet]]></category>

		<guid isPermaLink="false">http://www.skorp.eu/?p=395</guid>
		<description><![CDATA[Beni taniyanlar bilir, yillarin operacisiyimdir ve kod yazarken öteki tüm browserleride kullansam özel islerim icin hep opera kullanirim. Bugün yeni kesfettigim bir servisden bahsetmek istiyorum. Diger bazi Browserler bu isler icin degisik addon lar kullanmak zorunda olurken Opera 10 ile bircok özellik otomatikman bilgisayariniza yükleniyor. Servisin adi Opera Unite. Dosya paylasimi, Müzik dinleme, not tutma, [...]]]></description>
			<content:encoded><![CDATA[<p>Beni taniyanlar bilir, yillarin operacisiyimdir ve kod yazarken öteki tüm browserleride kullansam özel islerim icin hep opera kullanirim.<br />
Bugün yeni kesfettigim bir servisden bahsetmek istiyorum.<br />
Diger bazi Browserler bu isler icin degisik addon lar kullanmak zorunda olurken <strong>Opera 10</strong> ile bircok özellik otomatikman bilgisayariniza yükleniyor.<br />
Servisin adi <strong>Opera Unite</strong>. Dosya paylasimi, Müzik dinleme, not tutma, arkadaslarla mesajlasma, Statik Websitenizi kendi evinizden host etme, resim paylasimi vs. gibi eylemleri destekliyor.<br />
Mesela :<br />
-arkadasiniza film göndermek istiyorsaniz, operada dosyayi paylasin ve arkadasiniz sizin bilgisayarinizdan sorunsuzca indirsin. Rapidshare e filan yüklemeye gerek yok,<br />
-ayni sey resimlerde tüm arkadaslara resimleri tek tek göndermek artik opera ile yok, resimleri paylasin tüm arkadaslariniz ayni anda hepsini görsünler<br />
-isyerinde yada okulda evinizdeki müzikleri dinlemek istiyorsunuz ama download etme imkaniniz yok, sorun degil evde müzikleri paylasin isyerinden bilgisayariniza baglanip istediginiz mp3 ü dinleyin.<br />
......</p>
<p>Bu sersivi kullanabilmek icin opera 10 yüklü olmasi gerekiyor, birde myopera hesabina ihtiyacinz var.<br />
Myopera hesabini opera unite ilk kullanmak istediginizde olustura bilirsinz 20 saniye sürmez.</p>
<p>Dana beklemeye gerek yok operayi <a href="http://unite.opera.com/">indirin</a> ve deneyin:<br />
<a href="http://home.skorp54.operaunite.com">Benim opera unite adresim:</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.skorp.eu/2009/12/03/opera-unite-nedir-ne-ise-yarar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Php 5.3 Namespace ler</title>
		<link>http://www.skorp.eu/2009/10/01/php-5-3-namespace-ler/</link>
		<comments>http://www.skorp.eu/2009/10/01/php-5-3-namespace-ler/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 15:58:22 +0000</pubDate>
		<dc:creator>Skorp</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[php 5.3]]></category>

		<guid isPermaLink="false">http://www.skorp.eu/?p=364</guid>
		<description><![CDATA[Bir uygulama nekadar büyür, nekadar cok yazar o uygulamada calisirsa, nekadar degisik tür kodlar, kütüphaneler kullanilirsa okadar cok isim cakismasi ola bilir. En büyük örnegi php 5.1.0 cikmasindan bir kac gün sonra php 5.1.1 cikmasiyle görüldü, bunun nedeni php 5.1.0 da yeni Date adinda bir sinif bulunmasiydi. Bircok Pear kullanicisi update den sonra Fatal Error [...]]]></description>
			<content:encoded><![CDATA[<p>Bir uygulama nekadar büyür, nekadar cok yazar o uygulamada calisirsa, nekadar degisik tür kodlar, kütüphaneler kullanilirsa okadar cok isim cakismasi ola bilir.<br />
En büyük örnegi php 5.1.0 cikmasindan bir kac gün sonra php 5.1.1 cikmasiyle görüldü, bunun nedeni php 5.1.0 da yeni <strong>Date</strong> adinda bir sinif bulunmasiydi.<br />
Bircok <strong>Pear</strong> kullanicisi update den sonra <em>Fatal Error</em> larla karsilasmisdi cünki Pear inde Date Sinifi vardi.<br />
Böyle bir cakismadan kacinmak icin simdiye kadar Zend Framework de oldugu gibi Uzun isimler kullanildi (<em>Zend_Controller_Action</em>).</p>
<p>Php 5.3 ile bu uzun isimlerdende kurtulmak mümkün.</p>
<p>php dünyasininen en uzun süre tartisilan seperator u kesinlikle namespace seperator oldu.<br />
Asil cif iki nokta üstüste (::) kullanilicakti ama  php dünyasinda cif anlamli olur diye sonunda <strong>(\) Backslah</strong> isaretinde karar kilindi.</p>
<p>Namespace kullana bilmek icin, php dosyasinda ilk ifade <strong>namespace <namespacename></namespacename></strong> olmasi gerekmektedir, aksi takdirde bir <em>fatal error</em> ile karsilasirsiniz.<br />
mesela:</p>
<div class="igBar"><span id="lphp-19"><a href="#" onclick="javascript:showCodeTxt('php-19'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-19">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">namespace Skorp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"skorp.eu"</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Bir namespace bircok dosyayi kapsiya bilir. Dosyalarin her biri ayni namespace i beyan etmeleri gerekir. Asagidaki örnekde göründügü gibi, bir dosya icinde birden cok namespace bulunmasinada izin veriliyor.</p>
<div class="igBar"><span id="lphp-20"><a href="#" onclick="javascript:showCodeTxt('php-20'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-20">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">namespace Skorp</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"skorp.eu"</span>;</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">namespace Foo </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"foo.com"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ama asagidaki örnege izin verilmiyor, en az bir namespace beyan edilmisse onun disinda herhangi bir kod olamaz.</p>
<div class="igBar"><span id="lphp-21"><a href="#" onclick="javascript:showCodeTxt('php-21'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-21">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">namespace Skorp</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"skorp.eu"</span>;</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"gohome"</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>alinan hata mesaji:<br />
Fatal error: No code may exist outside of namespace {} in </p>
<p>Bir örnek ile namespaceleri nasil kullanacagimizi bakalim.</p>
<div class="igBar"><span id="lphp-22"><a href="#" onclick="javascript:showCodeTxt('php-22'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-22">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">namespace Skorp</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">class</span> Test <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">namespace Foo </div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">class</span> Test<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">namespace Bar</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/var_dump"><span style="color:#000066;">var_dump</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000; font-weight:bold;">new</span> \Foo\Test<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Bar namespace i icinde Foo namespacindeki Test sinifini olusturuyoruz.</p>
<p>var_dump satirini su sekilde yazmis olsaydik:</p>
<div class="igBar"><span id="lphp-23"><a href="#" onclick="javascript:showCodeTxt('php-23'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-23">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/var_dump"><span style="color:#000066;">var_dump</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000; font-weight:bold;">new</span> Foo\Test<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>söyle bir hata ile karsilasicaktik.<br />
Fatal error: Class 'Bar\Foo\Test' not found in</p>
<p>Bundan Adreslemeye dikkat etmemizi cikartiyoruz, normal bilgisyardaki Dosya Yapisi gibidir namespace de basta \ isareti yoksa kendi namespace icinde ara o sinifi.</p>
<p>Alias Mekanizmasi<br />
Herzaman \Foo\Test veya daha uzayan satirlar kullanmamak icin Alias mekanismasini kullana biliriz.</p>
<div class="igBar"><span id="lphp-24"><a href="#" onclick="javascript:showCodeTxt('php-24'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-24">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">namespace Bar</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; use Foo\Test <span style="color:#616100;">as</span> anton;</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/var_dump"><span style="color:#000066;">var_dump</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000; font-weight:bold;">new</span> anton<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>daha kisa yazmak icin</p>
<div class="igBar"><span id="lphp-25"><a href="#" onclick="javascript:showCodeTxt('php-25'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-25">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">namespace Bar</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; use Foo\Test;</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <a href="http://www.php.net/var_dump"><span style="color:#000066;">var_dump</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000; font-weight:bold;">new</span> Test<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Bu kisa yöntemde en son bilesen adi kullanilir alias olarak yani bizim örnegimizde Test</p>
<p>dikkat edilmesi gereken birsey daha var alias mekanizmasini kullanirken \ yazmamiza gerek yok, php burda sinif adinin tam yolunu bilmek istiyor.</p>
<p>Fonksiyonlarda bilinmesi gereken ise, onlara birer Alias veremiyoruz, ondan fonksiyonun tüm adini yazmak gerekiyor.<br />
yazilan fonksiyonlar ilk önce kullanilan Namespace icerisinde aranmaktadir, eger orada bulunmadiysa, global Namespace de aranir.</p>
<p>Mesela strlen adinda bir fonksiyonumuz varsa ama biz php nin bize sunmus oldugu strlen fonksiyonunu kullanmak istiyorsak ozaman basina bir \ koymamiz gerekiyor</p>
<div class="igBar"><span id="lphp-26"><a href="#" onclick="javascript:showCodeTxt('php-26'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-26">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> \<a href="http://www.php.net/strlen"><span style="color:#000066;">strlen</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"blabla"</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
son olarakda hangi namespace de oldugumuzu görmek icin _NAMESPACE_ Konstansini cagara bilirsiniz.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.skorp.eu/2009/10/01/php-5-3-namespace-ler/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CentOs de Php5.2.9&#8242;a  updateleme</title>
		<link>http://www.skorp.eu/2009/09/21/centos-de-php5-2-9-updateleme/</link>
		<comments>http://www.skorp.eu/2009/09/21/centos-de-php5-2-9-updateleme/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 10:51:09 +0000</pubDate>
		<dc:creator>Skorp</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.skorp.eu/?p=368</guid>
		<description><![CDATA[Centos in kendi reploari php 5.1.6 ile geliyor. Bazi applikasyonlar mesela Oxid shop php 5.2 gerektiriyor bu yüzden Centos de nasil php yi güncelleriz bakalim: PLAIN TEXT CODE: wget -q -O - http://www.atomicorp.com/installers/atomic.sh &#124; sh PLAIN TEXT CODE: yum repolist all ile baka bilirz atomic repolara eklendimi diye. ardindan PLAIN TEXT CODE: yum update son [...]]]></description>
			<content:encoded><![CDATA[<p>Centos in kendi reploari php 5.1.6 ile geliyor.<br />
Bazi applikasyonlar mesela Oxid shop php 5.2 gerektiriyor bu yüzden Centos de nasil php yi güncelleriz bakalim:</p>
<div class="igBar"><span id="lcode-31"><a href="#" onclick="javascript:showCodeTxt('code-31'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-31">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">wget -q -O - http:<span style="color:#FF9933; font-style:italic;">//www.atomicorp.com/installers/atomic.sh | sh </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<div class="igBar"><span id="lcode-32"><a href="#" onclick="javascript:showCodeTxt('code-32'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-32">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">yum repolist all </div>
</li>
</ol>
</div>
</div>
</div>
<p>
ile baka bilirz atomic repolara eklendimi diye.</p>
<p>ardindan</p>
<div class="igBar"><span id="lcode-33"><a href="#" onclick="javascript:showCodeTxt('code-33'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-33">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">yum update </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>son olarak</p>
<div class="igBar"><span id="lcode-34"><a href="#" onclick="javascript:showCodeTxt('code-34'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-34">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">/etc/init.<span style="">d</span>/lighttpd&nbsp; restart</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">apache kullananlar</div>
</li>
<li style="font-weight: bold;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">/etc/init.<span style="">d</span>/httpd&nbsp; restart </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.skorp.eu/2009/09/21/centos-de-php5-2-9-updateleme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
