<?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>Vijaya Kumar Blog &#187; $_SERVER[&quot;SCRIPT_NAME&quot;]</title>
	<atom:link href="http://vijayakumar.org/tag/_serverscript_name/feed" rel="self" type="application/rss+xml" />
	<link>http://vijayakumar.org</link>
	<description>(Stunning PHP/MYSQL/AJAX/SEO Tips)</description>
	<lastBuildDate>Fri, 03 Sep 2010 02:06:20 +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>How to get current page URL using PHP?</title>
		<link>http://vijayakumar.org/how-to-get-current-page-url-using-php.html</link>
		<comments>http://vijayakumar.org/how-to-get-current-page-url-using-php.html#comments</comments>
		<pubDate>Wed, 01 Jul 2009 02:52:38 +0000</pubDate>
		<dc:creator>Vijaya Kumar</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[$pageURL]]></category>
		<category><![CDATA[$_SERVER["SCRIPT_NAME"]]]></category>
		<category><![CDATA[curPageName()]]></category>
		<category><![CDATA[curPageURL()]]></category>
		<category><![CDATA[Get url using php]]></category>
		<category><![CDATA[getcurrentpagename]]></category>
		<category><![CDATA[getcurrentpageurl]]></category>
		<category><![CDATA[how to get url value using php]]></category>
		<category><![CDATA[php coding to get url value]]></category>
		<category><![CDATA[strrpos($_SERVER["SCRIPT_NAME"]"]]></category>

		<guid isPermaLink="false">http://www.vijayakumar.org/?p=36</guid>
		<description><![CDATA[While i searching for getting URL&#8217;s for current page, i found this script. I hope it will more useful for some developers to integrate. //This function returns the full url of the current page function getcurrentpageurl() { $pageURL = &#8216;http&#8217;; if ($_SERVER["HTTPS"] == &#8220;on&#8221;) {$pageURL .= &#8220;s&#8221;;} $pageURL .= &#8220;://&#8221;; if ($_SERVER["SERVER_PORT"] != &#8220;80&#8243;) { [...]]]></description>
			<content:encoded><![CDATA[<p>While i searching for getting URL&#8217;s for current page, i found this script. I hope it will more useful for some developers to integrate.</p>
<p>//This function returns the full url of the current page<br />
function getcurrentpageurl() {<br />
$pageURL = &#8216;http&#8217;;<br />
if ($_SERVER["HTTPS"] == &#8220;on&#8221;) {$pageURL .= &#8220;s&#8221;;}<br />
$pageURL .= &#8220;://&#8221;;<br />
if ($_SERVER["SERVER_PORT"] != &#8220;80&#8243;) {<br />
$pageURL .= $_SERVER["SERVER_NAME"].&#8221;:&#8221;.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];<br />
} else {<br />
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];<br />
}<br />
return $pageURL;<br />
}<br />
echo getcurrentpageurl();<br />
?&gt;</p>
<p>//This function returns the filename alone<br />
function getcurrentpagename() {<br />
return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],&#8221;/&#8221;)+1);<br />
}</p>
<p>echo &#8220;The current page name is &#8220;.getcurrentpageurl();<br />
?&gt;</p>
<input id="gwProxy" type="hidden"><!--Session data--></input>
<input id="jsProxy" onclick="jsCall();" type="hidden" />
]]></content:encoded>
			<wfw:commentRss>http://vijayakumar.org/how-to-get-current-page-url-using-php.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
