<?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>Large Resource</title>
	<atom:link href="http://www.largeresource.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.largeresource.net</link>
	<description>unlimited blogs and solutions</description>
	<lastBuildDate>Mon, 16 Apr 2012 09:15:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>To integrate iPay88 Malaysian payment gateway into your website</title>
		<link>http://www.largeresource.net/to-integrate-ipay88-malaysian-payment-gateway-into-your-website/</link>
		<comments>http://www.largeresource.net/to-integrate-ipay88-malaysian-payment-gateway-into-your-website/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 09:14:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[ipay88]]></category>
		<category><![CDATA[malaysian]]></category>
		<category><![CDATA[payment gateway]]></category>

		<guid isPermaLink="false">http://www.largeresource.net/?p=31</guid>
		<description><![CDATA[To integrate iPay88 Malaysian payment gateway into your website, contact me. I had done lot of iPay88 payment gateway integration in different malaysian websites.]]></description>
			<content:encoded><![CDATA[<p>To integrate iPay88 Malaysian payment gateway into your website, contact me.<br />
I had done lot of iPay88 payment gateway integration in different malaysian websites.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.largeresource.net/to-integrate-ipay88-malaysian-payment-gateway-into-your-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display facebook fan count on your webpage</title>
		<link>http://www.largeresource.net/display-facebook-fan-count-on-your-webpage/</link>
		<comments>http://www.largeresource.net/display-facebook-fan-count-on-your-webpage/#comments</comments>
		<pubDate>Fri, 13 Apr 2012 07:13:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[blog credit]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[fan count]]></category>
		<category><![CDATA[shopping cart credit]]></category>

		<guid isPermaLink="false">http://www.largeresource.net/?p=28</guid>
		<description><![CDATA[If you are interested in showing fan count of facebook page in your webpage, which helps to increase your blog or shopping cart credit. Below php function returns fan count for the given facebook page id. You can call this function anywhere in your website to show the fan count.]]></description>
			<content:encoded><![CDATA[<p>If you are interested in showing fan count of facebook page in your webpage, which helps to increase your blog or shopping cart credit.</p>
<p><span id="more-28"></span></p>
<p>Below php function returns fan count for the given facebook page id.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
function fan_count($page_id)
{
	// use caching mechanism to cache this fan count atleast for an hour
	// either store it into database or file

	$cache_file = 'temp/fan_count_cache.txt'; // give 777 permission to this file

	$cache_content = @file_get_contents($cache_file);

	if (!$cache_content)
	{
		$cache_arr = explode(&quot; - &quot;, $cache_content);
		$old_fan_count = $cache_arr[0];
		$cache_time = $cache_arr[1];
	}

	if (($cache_time + 3600) &gt; time())
		return $old_fan_count;

	$id = $page_id; // ex. http://www.facebook.com/xyz
	$api_url = 'http://graph.facebook.com/';
	$output = @file_get_contents( $api_url . $id ); // facebook returns output in json format
	$result = json_decode( $output, true ); // converts json string to array

	$fan_count = 0;

	if ( is_array( $result ) &amp;&amp; !isset( $result['error'] ) &amp;&amp; isset($result['likes']) )
	{
		$fan_count = (int) $result['likes'];
		$current_time = time();

		@file_put_contents($cache_file, &quot;$fan_count - $current_time&quot;);
	}

	return $fan_count;
}

echo fan_count('xyz'); // replace 'xyz' with your real facebook page id
?&gt;
</pre>
<p>You can call this function
<pre class="brush: php; title: ; notranslate">echo fan_count('xyz'); // replace 'xyz' with your real facebook page id</pre>
<p> anywhere in your website to show the fan count.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.largeresource.net/display-facebook-fan-count-on-your-webpage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE 7 and 8 problem in using Javascript DOM children property</title>
		<link>http://www.largeresource.net/ie-7-and-8-problem-in-using-javascript-dom-children-property/</link>
		<comments>http://www.largeresource.net/ie-7-and-8-problem-in-using-javascript-dom-children-property/#comments</comments>
		<pubDate>Tue, 10 Apr 2012 03:42:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[children property]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[tagName]]></category>

		<guid isPermaLink="false">http://www.largeresource.net/?p=27</guid>
		<description><![CDATA[When using Javascript DOM children property in IE 7 and 8, it will retrieve comments also as nodes. To avoid this problem, you need to loop the child nodes and find out required nodes from child list. Here is simple code explaining the problem. To find out the slide images without comments section, we need [...]]]></description>
			<content:encoded><![CDATA[<p>When using Javascript DOM children property in IE 7 and 8, it will retrieve comments <!-- --> also as nodes.</p>
<p><span id="more-27"></span></p>
<p>To avoid this problem, you need to loop the child nodes and find out required nodes from child list.<br />
Here is simple code explaining the problem.</p>
<pre class="brush: xml; title: ; notranslate">
  &lt;div id=&quot;slideshow&quot;&gt;
    &lt;div id=&quot;slides&quot;&gt;

     &lt;!-- START slide 1 --&gt;
      &lt;div class=&quot;slide&quot;&gt; &lt;img src=&quot;home_photos/home-01.jpg&quot; width=&quot;975&quot; height=&quot;450&quot; /&gt;
      &lt;/div&gt;&lt;!-- END slide 1 --&gt;

      &lt;!-- START slide 2--&gt;
      &lt;div class=&quot;slide&quot;&gt; &lt;img src=&quot;home_photos/home-02.jpg&quot; width=&quot;975&quot; height=&quot;450&quot; /&gt;
      &lt;/div&gt;&lt;!-- END slide 2 --&gt;

      &lt;!-- START slide 3 --&gt;
      &lt;div class=&quot;slide&quot;&gt; &lt;img src=&quot;home_photos/home-03.jpg&quot; width=&quot;975&quot; height=&quot;450&quot; /&gt;
      &lt;/div&gt;&lt;!-- END slide 3 --&gt;

     &lt;!-- START slide 4 --&gt;
      &lt;div class=&quot;slide&quot;&gt; &lt;img src=&quot;home_photos/home-04.jpg&quot; width=&quot;975&quot; height=&quot;450&quot; /&gt;
      &lt;/div&gt;&lt;!-- END slide 4 --&gt;

     &lt;/div&gt;&lt;!-- END slides --&gt;
   &lt;/div&gt; &lt;!-- END SLIDESHOW --&gt;
</pre>
<p>To find out the slide images without comments section, we need to use tagName to eliminate comment nodes from list.</p>
<pre class="brush: jscript; title: ; notranslate">
    var tempCollection = document.getElementById(&quot;slides&quot;).children;
    var slidesCollection = [];
    for(var i = 0; i &lt; tempCollection.length; i++)
    {
    	if (tempCollection[i].tagName != &quot;DIV&quot;) continue;
    	slidesCollection.push(tempCollection[i]);
    }

    totalSlides = slidesCollection.length;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.largeresource.net/ie-7-and-8-problem-in-using-javascript-dom-children-property/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show webpage content after user clicks on Facebook Like button</title>
		<link>http://www.largeresource.net/show-webpage-content-after-user-clicks-on-facebook-like-button/</link>
		<comments>http://www.largeresource.net/show-webpage-content-after-user-clicks-on-facebook-like-button/#comments</comments>
		<pubDate>Sat, 24 Mar 2012 14:43:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[click event]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook like]]></category>
		<category><![CDATA[mouseout]]></category>
		<category><![CDATA[mouseover]]></category>

		<guid isPermaLink="false">http://www.largeresource.net/?p=25</guid>
		<description><![CDATA[Are you trying to make a webpage so that content will only be visible after user likes the pop-uped iframe like button of facebook. Here is some experimental javascript code written to identify user click on Facebook Like button of your website. When your webpage document loads, it will bind two events handler of facebook [...]]]></description>
			<content:encoded><![CDATA[<p>Are you trying to make a webpage so that content will only be visible after user likes the pop-uped iframe like button of facebook.</p>
<p><span id="more-25"></span></p>
<p>Here is some experimental javascript code written to identify user click on Facebook Like button of your website.</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;// &lt;![CDATA[
	var inside = false;
	$(document).ready(function() {
		$(&quot;.fb-like&quot;).mouseover(function() {
			inside = true;
		});
		$(&quot;.fb-like&quot;).mouseout(function() {
			inside = false;
		});

		function processIFrameClick() {
			if(inside) {
				// do you process here
				inside = false;
			}
		}

		if (typeof window.attachEvent != 'undefined') {
			top.attachEvent('onblur', processIFrameClick);
		}
		else if (typeof window.addEventListener != 'undefined') {
			top.addEventListener('blur', processIFrameClick, false);
		}
	});

// ]]&gt;&lt;/script&gt;
</pre>
<p>When your webpage document loads, it will bind two events handler of facebook like button (mouseover, mouseout). Moving the mouse inside the facebook like button will make &#8220;inside&#8221; variable to true and taking out will make false.</p>
<p>Another event is bind with window object on blur. This event works when you click on Facebook Like button.<br />
So you have to write your code futher in <code>// do you process here</code> location.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.largeresource.net/show-webpage-content-after-user-clicks-on-facebook-like-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recursively reading files based on search option in PHP 4 and 5</title>
		<link>http://www.largeresource.net/recursively-reading-files-based-on-search-option-in-php-4-and-5/</link>
		<comments>http://www.largeresource.net/recursively-reading-files-based-on-search-option-in-php-4-and-5/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 06:36:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[reading files]]></category>
		<category><![CDATA[recursive read files]]></category>
		<category><![CDATA[search option]]></category>
		<category><![CDATA[search pattern]]></category>

		<guid isPermaLink="false">http://www.largeresource.net/?p=22</guid>
		<description><![CDATA[Recursively reading files based on search option in PHP 4 and 5. It is a small script written in equivalent to Directory.GetFiles method in C#. Small script to read xml files recursively from a specified directory. Return the results in array format. Same code is written in little different format to make it to work [...]]]></description>
			<content:encoded><![CDATA[<p>Recursively reading files based on search option in PHP 4 and 5. It is a small script written in equivalent to Directory.GetFiles method in C#.</p>
<p><span id="more-22"></span></p>
<p>Small script to read xml files recursively from a specified directory. Return the results in array format. Same code is written in little different format to make it to work in PHP 4 and 5 versions.</p>
<p><strong>PHP 4</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
	$dir_path = '.';
	$files = get_files($dir_path, '.xml', 'r');
	print_r($files); // return all xml files in array format.

	function get_files($dir_path = '.', $searchPattern = '', $searchOption = '') {

		$files = array();

		if (is_dir($dir_path)) {
			if ($handle = opendir($dir_path)) {
				$l_searchPattern = (!empty($searchPattern) &amp;&amp; substr($searchPattern,0,1) == '*') ? '.' . substr($searchPattern,0,1) . preg_quote(substr($searchPattern,1)) : $searchPattern;
				while (($file = readdir($handle)) !== false) {
					if ($file == &quot;.&quot; || $file == &quot;..&quot; ) continue;

					$complete_filepath = $dir_path .'/'. $file;

					if (is_dir($complete_filepath) &amp;&amp; ($searchOption == 'recursive' || $searchOption == 'r')) {
						$files = array_merge($files, get_files($complete_filepath, $searchPattern, $searchOption));
						continue;
					}

					if (!is_dir($complete_filepath) &amp;&amp; empty($l_searchPattern) || preg_match(&quot;/$l_searchPattern$/i&quot;, $file)) {
						array_push($files, $complete_filepath);
					}
				}
				closedir($handle);
			}
		}

		return $files;
	}
?&gt;
</pre>
<p><strong>PHP 5</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

	$dir_path = '.';

	$files = get_files($dir_path, '.xml', 'r');

	print_r($files);

	function get_files($dir_path = '.', $searchPattern = '', $searchOption = '') {

		$files = array();

		if (is_dir($dir_path)) {
			$scan_files = scandir($dir_path);

			$l_searchPattern = (!empty($searchPattern) &amp;&amp; substr($searchPattern,0,1) == '*') ? '.' . substr($searchPattern,0,1) . preg_quote(substr($searchPattern,1)) : $searchPattern;
			foreach($scan_files as $file) {
				if ($file == &quot;.&quot; || $file == &quot;..&quot; ) continue;

				$complete_filepath = $dir_path .'/'. $file;

				if (is_dir($complete_filepath) &amp;&amp; ($searchOption == 'recursive' || $searchOption == 'r')) {
					$files = array_merge($files, get_files($complete_filepath, $searchPattern, $searchOption));
					continue;
				}

				if (!is_dir($complete_filepath) &amp;&amp; empty($l_searchPattern) || preg_match(&quot;/$l_searchPattern$/i&quot;, $file)) {
					array_push($files, $complete_filepath);
				}
			}
		}

		return $files;
	}

?&gt;
</pre>
<p>I have used scandir function in PHP 5 version, which is easiest way to read directories and files from specific directory. To learn more about scandir function &#8211; <a href="http://php.net/manual/en/function.scandir.php">http://php.net/manual/en/function.scandir.php</a>.</p>
<p>In get_files function, there are three parameters<br />
1. $dir_path &#8211; The path you want to read files<br />
2. $searchPattern &#8211; By default it is empty, If you don&#8217;t pass any value, then it will return all files. If you want only xml files then pass &#8220;.xml&#8221; or &#8220;*.xml&#8221;<br />
3. $searchOption &#8211; By default it is empty, If you pass empty it will return files from top directory only. To recursively get files based on searchPattern then pass &#8220;recursive&#8221; or &#8220;r&#8221;.</p>
<p>Thanks for reading <img src='http://www.largeresource.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.largeresource.net/recursively-reading-files-based-on-search-option-in-php-4-and-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Detecting URL and Making it as link in Text</title>
		<link>http://www.largeresource.net/detecting-url-and-making-it-as-link-in-text/</link>
		<comments>http://www.largeresource.net/detecting-url-and-making-it-as-link-in-text/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 04:20:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[detecting urls]]></category>
		<category><![CDATA[making link]]></category>

		<guid isPermaLink="false">http://www.largeresource.net/?p=20</guid>
		<description><![CDATA[We might be having large text, with urls without links. Instead of editing the text or post, we can make the url as link dynamically while displaying it in browser. The above code will find the urls in $text and make it as links dynamically. This code can be used in any part of code [...]]]></description>
			<content:encoded><![CDATA[<p>We might be having large text, with urls without links. Instead of editing the text or post, we can make the url as link dynamically while displaying it in browser.</p>
<p><span id="more-20"></span></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$text = 'This is a simple text to find http://www.google.com
and http://www.about.com urls from the text and make it as links
URLs will be dynamically formatted as links, this avoid editing each post or text
in large archives or database - http://www.largeresource.net/ ';
$text = preg_replace( &quot;/(^|\s)((http|https|ftp):\/\/[^\s&lt;]+)/i&quot;, '\\1&lt;a href=&quot;\\2&quot;&gt;\\2&lt;/a&gt;', $text );
echo $text;
?&gt;
</pre>
<p>The above code will find the urls in $text and make it as links dynamically. This code can be used in any part of code structure easily.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.largeresource.net/detecting-url-and-making-it-as-link-in-text/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Moving large file from one server to another server without downloading locally</title>
		<link>http://www.largeresource.net/moving-large-file-from-one-server-to-another-server-without-downloading-locally/</link>
		<comments>http://www.largeresource.net/moving-large-file-from-one-server-to-another-server-without-downloading-locally/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 16:07:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[backup file]]></category>
		<category><![CDATA[moving large file]]></category>

		<guid isPermaLink="false">http://www.largeresource.net/?p=19</guid>
		<description><![CDATA[Here is the simple script to copy large file from one server to another server without downloading it to local machine. Create a download.php in your destination server and change the filename to be downloaded and created. It will avoid user&#8217;s bandwidth and time and it is the easiest way to copy the large backup [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the simple script to copy large file from one server to another server without downloading it to local machine.</p>
<p><span id="more-19"></span></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
    $in = fopen(&quot;http://xyz.com/backup.tar.gz&quot;, &quot;rb&quot;);
    $out = fopen(&quot;backup.tar.gz&quot;, &quot;w+&quot;);
    echo pipe_streams($in, $out);

    function pipe_streams($in, $out)
    {
        $size = 0;
        while (!feof($in)) $size += fwrite($out,fread($in,8192));
        return $size;
    }
?&gt;
</pre>
<p>Create a download.php in your destination server and change the filename to be downloaded and created.<br />
It will avoid user&#8217;s bandwidth and time and it is the easiest way to copy the large backup files from one server to another server, while changing the hosting server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.largeresource.net/moving-large-file-from-one-server-to-another-server-without-downloading-locally/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Script to Log into an SMTP server &#8211; phpmailer</title>
		<link>http://www.largeresource.net/script-to-log-into-an-smtp-server-phpmailer/</link>
		<comments>http://www.largeresource.net/script-to-log-into-an-smtp-server-phpmailer/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 14:59:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpmailer]]></category>
		<category><![CDATA[SMTP Server]]></category>

		<guid isPermaLink="false">http://www.largeresource.net/?p=17</guid>
		<description><![CDATA[Best way to read and send mails is log into an SMTP server. Download the latest phpmailer source code and copy it into your server. And use the below script to send mails using SMTP server. Finally smtp_auth_mail function will return true after sending the mail successfully otherwise it will return false.]]></description>
			<content:encoded><![CDATA[<p>Best way to read and send mails is log into an SMTP server.</p>
<p><span id="more-17"></span></p>
<p>Download the latest phpmailer source code and copy it into your server.<br />
And use the below script to send mails using SMTP server.</p>
<pre class="brush: php; title: ; notranslate">
require_once(&quot;phpmailer/class.phpmailer.php&quot;);
require_once(&quot;phpmailer/class.smtp.php&quot;);

function smtp_auth_mail($to, $subject, $message, $headers, $auth = true)
{
	$mail             = new PHPMailer();

	$body             = $message;

	$mail-&gt;IsSMTP(); // telling the class to use SMTP
	$mail-&gt;Host       = &quot;localhost&quot;; // SMTP server
	$mail-&gt;Port       = &quot;465&quot;; // SMTP port
	$mail-&gt;SMTPSecure = &quot;ssl&quot;; // SMTP secure

	$mail-&gt;From       = &quot;admin@xyz.com&quot;;
	$mail-&gt;FromName   = &quot;XYZ Admin&quot;;

	if ($auth)
	{
		$mail-&gt;SMTPAuth	  = true;

		$mail-&gt;Username	  = &quot;admin@xyz.com&quot;; // in some servers @ will be replaced with +
		$mail-&gt;Password	  = &quot;xyz123&quot;;
	}

	$mail-&gt;Subject    = $subject;

	$body = str_ireplace(&quot;\n&quot;, &quot;&lt;br&gt;&quot;, $body);

	$mail-&gt;MsgHTML($body);

	$mail-&gt;AddAddress($to);

	if(!$mail-&gt;Send()) {
		if (stripos($mail-&gt;ErrorInfo, 'Data not accepted') === false)
			echo &quot;Mailer Error: &quot; . $mail-&gt;ErrorInfo;
			return false;
	} else {
	  return true;
	}
}

smtp_auth_mail('xyz@gmail.com', 'Test mail', 'Test mail from XYZ', '');
</pre>
<p>Finally smtp_auth_mail function will return true after sending the mail successfully otherwise it will return false.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.largeresource.net/script-to-log-into-an-smtp-server-phpmailer/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to get the current url in PHP?</title>
		<link>http://www.largeresource.net/how-to-get-the-current-url-in-php/</link>
		<comments>http://www.largeresource.net/how-to-get-the-current-url-in-php/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 07:27:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[get current url]]></category>

		<guid isPermaLink="false">http://www.largeresource.net/?p=14</guid>
		<description><![CDATA[Here is simple code to get the current url in PHP You can get the complete URL by using the below code. Found this little snippet that does almost the same&#8230;]]></description>
			<content:encoded><![CDATA[<p>Here is simple code to get the current url in PHP<br />
<span id="more-14"></span></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

	function selfURL() {
		if(!isset($_SERVER['REQUEST_URI'])) {
			$serverrequri = $_SERVER['PHP_SELF'];
		}
		else {
			$serverrequri = $_SERVER['REQUEST_URI'];
		}
		$s = empty($_SERVER[&quot;HTTPS&quot;]) ? '' : ($_SERVER[&quot;HTTPS&quot;] == &quot;on&quot;) ? &quot;s&quot; : &quot;&quot;;
		$protocol = substr(strtolower($_SERVER[&quot;SERVER_PROTOCOL&quot;]), 0, strpos($_SERVER[&quot;SERVER_PROTOCOL&quot;], '/')).$s;
		$port = ($_SERVER[&quot;SERVER_PORT&quot;] == &quot;80&quot;) ? &quot;&quot; : (&quot;:&quot;.$_SERVER[&quot;SERVER_PORT&quot;]);
		return $protocol.&quot;://&quot;.$_SERVER['SERVER_NAME'].$port.$serverrequri;
	}
?&gt;
</pre>
<p>You can get the complete URL by using the below code.</p>
<pre class="brush: php; title: ; notranslate"> &lt;?php echo selfURL(); ?&gt; </pre>
<p>Found this <a href="http://dev.kanngard.net/Permalinks/ID_20050507183447.html">little snippet</a> that does almost the same&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.largeresource.net/how-to-get-the-current-url-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL statement to find modified stored procedures in SQL Server Database</title>
		<link>http://www.largeresource.net/sql-statement-to-find-modified-stored-procedures-in-sql-server-database/</link>
		<comments>http://www.largeresource.net/sql-statement-to-find-modified-stored-procedures-in-sql-server-database/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 08:32:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[stored procedures]]></category>

		<guid isPermaLink="false">http://www.largeresource.net/?p=12</guid>
		<description><![CDATA[Most of the time we need to copy the stored procedures from development to production database server. That time we need to find out list of stored procedures modified. Here is the simple sql query to order the stored procedures modified. To find stored procedures modified after specified date To find stored procedures modified in [...]]]></description>
			<content:encoded><![CDATA[<p>Most of the time we need to copy the stored procedures from development to production database server. That time we need to find out list of stored procedures modified. Here is the simple sql query to order the stored procedures modified.<br />
<span id="more-12"></span></p>
<pre class="brush: sql; title: ; notranslate">select name, create_date, modify_date from sys.objects where type='P' order by modify_date desc</pre>
<p>To find stored procedures modified after specified date</p>
<pre class="brush: sql; title: ; notranslate">select name, create_date, modify_date from sys.objects where type='P' and modify_date &gt; '2010-05-26 12:10:44.810' order by modify_date desc</pre>
<p>To find stored procedures modified in last 15 days</p>
<pre class="brush: sql; title: ; notranslate">select name, create_date, modify_date from sys.objects where type='P' and datediff(day, modify_date, getdate()) &lt;= 15 order by modify_date desc</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.largeresource.net/sql-statement-to-find-modified-stored-procedures-in-sql-server-database/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

