<?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>basename &#8211; alperdereli.com</title>
	<atom:link href="https://www.alperdereli.com/etiket/basename/feed" rel="self" type="application/rss+xml" />
	<link>https://www.alperdereli.com</link>
	<description></description>
	<lastBuildDate>Tue, 18 Feb 2025 07:11:52 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.alperdereli.com/wp-content/uploads/2013/11/ad_logo-150x150.png</url>
	<title>basename &#8211; alperdereli.com</title>
	<link>https://www.alperdereli.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>PHP ile görüntülenen sayfanın adını öğrenmek</title>
		<link>https://www.alperdereli.com/php-ile-goruntulenen-sayfanin-adini-ogrenmek</link>
					<comments>https://www.alperdereli.com/php-ile-goruntulenen-sayfanin-adini-ogrenmek#respond</comments>
		
		<dc:creator><![CDATA[Alper Dereli]]></dc:creator>
		<pubDate>Mon, 30 Dec 2019 07:58:19 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[basename]]></category>
		<category><![CDATA[php]]></category>
		<guid isPermaLink="false">http://www.alperdereli.com/?p=546</guid>

					<description><![CDATA[PHP ile görüntülediğiniz sayfanın adını öğrenmek ve bu sayfaya göre bir işlem yapmak istiyorsanız iki farklı yöntemle bu işlemi gerçekleştirebilirsiniz.]]></description>
										<content:encoded><![CDATA[<p>PHP ile görüntülediğiniz sayfanın adını öğrenmek ve bu sayfaya göre bir işlem yapmak istiyorsanız iki farklı yöntemle bu işlemi gerçekleştirebilirsiniz.</p>
<p>Diyelim ki <strong>iletisim.php</strong> sayfasındasınız. Site genelinde kullanılan ve bu iletisim.php dosyasına include edilmiş bir php dosyanız var. Siz include edilen dosyanın içinde <strong>iletisim.php</strong> sayfasına özel bir işlem yapmak istiyorsunuz. Bu durumda hangi sayfada olduğunuzu aşağıdaki kod ile öğrenebilirsiniz.</p>
<pre class="brush: php; title: ; notranslate">
echo basename($_SERVER&#x5B;&#039;PHP_SELF&#039;]); //iletisim.php döndürür.
echo basename(__FILE__); //include edilen dosyayının adını döndürür.
</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://www.alperdereli.com/php-ile-goruntulenen-sayfanin-adini-ogrenmek/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
