<?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>LAMP for WEB &#187; php örnek</title>
	<atom:link href="http://www.lampforweb.com/index.php/tag/php-ornek/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lampforweb.com</link>
	<description>Linux Apache Mysql Php - Örnek uygulama, ipuçları, döküman, duyuru v.s</description>
	<lastBuildDate>Fri, 07 Jan 2011 14:54:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP ile css dosyalarının daha hızlı yüklenmesi</title>
		<link>http://www.lampforweb.com/index.php/php/php-ile-css-dosyalarinin-daha-hizli-yuklenmesi/</link>
		<comments>http://www.lampforweb.com/index.php/php/php-ile-css-dosyalarinin-daha-hizli-yuklenmesi/#comments</comments>
		<pubDate>Mon, 27 Dec 2010 10:38:43 +0000</pubDate>
		<dc:creator>longvehicle</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[php örnek]]></category>

		<guid isPermaLink="false">http://www.lampforweb.com/?p=185</guid>
		<description><![CDATA[Web sitenizde birden fazla css dosyası kullanıyorsanız sayfanızın yüklenmesi uzun sürebilir. Aşağıdaki php örneğini kullanarak css dosyalarınızı sıkıştırıp tek bir dosyada birleştirebilirsiniz. Hem tek dosya olması hem de gereksiz boşlukların ve yorumların temizlenmesi css dosyalarınızın daha çabuk yüklenmesini sağlayacaktır.

&#60;?php
header&#40;'Content-type: text/css'&#41;;
ob_start&#40;&#34;compress&#34;&#41;;
function compress&#40;$buffer&#41; 
&#123;
	/* yorumlar temizleniyor */
	$buffer = preg_replace&#40;'!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer&#41;;
&#160;
	/* tablar, boşluklar, satırlar temizleniyor */
	$buffer = [...]]]></description>
		<wfw:commentRss>http://www.lampforweb.com/index.php/php/php-ile-css-dosyalarinin-daha-hizli-yuklenmesi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Metin içerisinde kelime vurgulama/renklendirme</title>
		<link>http://www.lampforweb.com/index.php/php/php-kelime-renklendirme/</link>
		<comments>http://www.lampforweb.com/index.php/php/php-kelime-renklendirme/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 00:17:54 +0000</pubDate>
		<dc:creator>longvehicle</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[php örnek]]></category>

		<guid isPermaLink="false">http://www.lampforweb.com/?p=180</guid>
		<description><![CDATA[Arama sonuçlarında aranan kelimeleri renklendirerek veya farklı bir biçimde göstererek vurgulamak isterseniz aşağıdaki fonksiyonu kullanabilirsiniz. Fonksiyon metin içerisindeki kelimeleri regular expression ile bulup değiştiriyor.

&#60;?php
&#160;
function vurgula&#40;$metin, $kelimeler&#41;
&#123;
    if &#40;!is_array &#40;$kelimeler&#41; &#124;&#124; empty &#40;$kelimeler&#41; &#124;&#124; !is_string &#40;$metin&#41;&#41;
    &#123;
        return false;
    &#125;
&#160;
 [...]]]></description>
		<wfw:commentRss>http://www.lampforweb.com/index.php/php/php-kelime-renklendirme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Php Url Kısaltma</title>
		<link>http://www.lampforweb.com/index.php/php/php-url-kisaltma/</link>
		<comments>http://www.lampforweb.com/index.php/php/php-url-kisaltma/#comments</comments>
		<pubDate>Sat, 27 Nov 2010 10:02:34 +0000</pubDate>
		<dc:creator>longvehicle</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[php araçları]]></category>
		<category><![CDATA[php örnek]]></category>

		<guid isPermaLink="false">http://www.lampforweb.com/?p=178</guid>
		<description><![CDATA[Siz de bir twitter kullanıcısı iseniz bilirsiniz, yazacağınız mesajlar 140 karakterle sınırlıdır. Bu sebepten mesajlarınıza bir link eklemek istediğinizde sıkıntı yaşayabilirsiniz. Bu durumu aşmak için internette çeşitli url kısaltma servisleri mevcut. Bunlardan bazılarını api&#8217;leri yardımı ile php uygulamalarımızda kullanabiliriz. 
İlk olarak üyelik gerektirmeyen Tinyurl.com ile başlayalım :

function getTinyUrl&#40;$url&#41;
&#123;
	return file_get_contents&#40;&#34;http://tinyurl.com/api-create.php?url=&#34;.$url&#41;;
&#125;
&#160;
$turl = getTinyUrl&#40;'http://www.lampforweb.com/index.php/diger/php-url-kisaltma/'&#41;;
echo $turl;
&#160;
//http://tinyurl.com/337y28b

Tinyurl.com servisinin kullanımı kolay [...]]]></description>
		<wfw:commentRss>http://www.lampforweb.com/index.php/php/php-url-kisaltma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Php&#8217;de serialize ve base64_encode ile sayfalar arasında dizi veya nesneleri taşımak</title>
		<link>http://www.lampforweb.com/index.php/php/php-serialize-ve-base64_encode-ile-dizi-veya-nesne-degerlerini-tasima/</link>
		<comments>http://www.lampforweb.com/index.php/php/php-serialize-ve-base64_encode-ile-dizi-veya-nesne-degerlerini-tasima/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 16:22:59 +0000</pubDate>
		<dc:creator>longvehicle</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[dizi]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[php örnek]]></category>

		<guid isPermaLink="false">http://www.lampforweb.com/?p=100</guid>
		<description><![CDATA[Php sayfaları arasında POST veya GET metoduyla gelen değerleri veya sayfa içindeki dizi veya nesnelerin alt elemanlarıyla beraber değerlerini taşımak için aşağıdaki yöntemi kullanabilirsiniz.
form.html // Form verilerinin POST metodu ile gönderileceği form sayfası.

&#60;html&#62;
&#60;head&#62;
	&#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62;
	&#60;title&#62;Form&#60;/title&#62;
&#60;/head&#62;
&#60;body&#62;
	&#60;form action=&#34;islem1.php&#34; method=&#34;POST&#34;&#62;
		Adı : &#60;input type=&#34;text&#34; name=&#34;adi&#34; size=&#34;30&#34;&#62;&#60;br&#62;
		Soyadı : &#60;input type=&#34;text&#34; name=&#34;soyadi&#34; size=&#34;30&#34;&#62;&#60;br&#62;
		Email : &#60;input type=&#34;text&#34; name=&#34;email&#34; size=&#34;50&#34;&#62;&#60;br&#62;
		Telefon : [...]]]></description>
		<wfw:commentRss>http://www.lampforweb.com/index.php/php/php-serialize-ve-base64_encode-ile-dizi-veya-nesne-degerlerini-tasima/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Dinamik açılan kutular oluşturma</title>
		<link>http://www.lampforweb.com/index.php/mysql/dinamik-acilan-kutular-olusturma/</link>
		<comments>http://www.lampforweb.com/index.php/mysql/dinamik-acilan-kutular-olusturma/#comments</comments>
		<pubDate>Sun, 15 Jul 2007 20:52:05 +0000</pubDate>
		<dc:creator>soylu</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php örnek]]></category>

		<guid isPermaLink="false">http://www.lampforweb.com/2007/07/15/dinamik-acilan-kutular-olusturma/</guid>
		<description><![CDATA[Projelerimizde sıkça ihtiyaç duyabileceğimiz konulardan biri olan veritabanındaki veriler ile dinamik açılan kutular oluşturma için güzel bir örnek.
 Aşağıdaki örnekte, veritabanındaki şehirlerin açılan kutu içerisinde nasıl kullanılabileceğinizi göreceğiz.

&#60;?
$sehirler_sorgu=mysql_query&#40;&#34;select sehir_id,sehir_adi from sehirler&#34;&#41;;
?&#62;
&#60;select name=&#34;sehirler&#34;&#62;
&#60;?
while&#40;$sehirler_sonuc=mysql_fetch_object&#40;&#41;&#41;
&#123;
?&#62;
    &#60;option value=&#34;&#60;?=$sehirler_sonuc-&#62;sehir_id?&#62;&#34;&#62;&#60;?=$sehirler_sonuc-&#62;sehir_adi?&#62;&#60;/option&#62;
&#60;?
&#125;
?&#62;
&#60;/select&#62;

]]></description>
		<wfw:commentRss>http://www.lampforweb.com/index.php/mysql/dinamik-acilan-kutular-olusturma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

