<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>WebCastle Media Pvt LTD</title>
	
	<link>http://webcastletech.com</link>
	<description>Inventing solutions</description>
	<lastBuildDate>Mon, 23 Apr 2012 10:24:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/webcastle" /><feedburner:info uri="webcastle" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>webcastle</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>world word</title>
		<link>http://feedproxy.google.com/~r/webcastle/~3/7fwJUvUEOMU/world-word</link>
		<comments>http://webcastletech.com/portfolio/world-word#comments</comments>
		<pubDate>Sat, 21 Apr 2012 12:24:04 +0000</pubDate>
		<dc:creator>Castler</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Web design]]></category>

		<guid isPermaLink="false">http://webcastletech.com/?p=1112</guid>
		<description />
			<content:encoded><![CDATA[<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webcastle?a=7fwJUvUEOMU:UyKwPPgEiBE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webcastle?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=7fwJUvUEOMU:UyKwPPgEiBE:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webcastle?i=7fwJUvUEOMU:UyKwPPgEiBE:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=7fwJUvUEOMU:UyKwPPgEiBE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webcastle?i=7fwJUvUEOMU:UyKwPPgEiBE:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webcastle/~4/7fwJUvUEOMU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webcastletech.com/portfolio/world-word/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://webcastletech.com/portfolio/world-word</feedburner:origLink></item>
		<item>
		<title>SP Global</title>
		<link>http://feedproxy.google.com/~r/webcastle/~3/P204Npq8T60/sp-global</link>
		<comments>http://webcastletech.com/portfolio/sp-global#comments</comments>
		<pubDate>Sat, 21 Apr 2012 12:14:56 +0000</pubDate>
		<dc:creator>Castler</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Web design]]></category>

		<guid isPermaLink="false">http://webcastletech.com/?p=1107</guid>
		<description />
			<content:encoded><![CDATA[<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webcastle?a=P204Npq8T60:D29BDZBdceE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webcastle?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=P204Npq8T60:D29BDZBdceE:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webcastle?i=P204Npq8T60:D29BDZBdceE:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=P204Npq8T60:D29BDZBdceE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webcastle?i=P204Npq8T60:D29BDZBdceE:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webcastle/~4/P204Npq8T60" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webcastletech.com/portfolio/sp-global/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://webcastletech.com/portfolio/sp-global</feedburner:origLink></item>
		<item>
		<title>Indian Blood Bank</title>
		<link>http://feedproxy.google.com/~r/webcastle/~3/iYP9rZFXg3s/indian-blood-bank</link>
		<comments>http://webcastletech.com/portfolio/indian-blood-bank#comments</comments>
		<pubDate>Sat, 21 Apr 2012 12:00:36 +0000</pubDate>
		<dc:creator>Castler</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://webcastletech.com/?p=1101</guid>
		<description />
			<content:encoded><![CDATA[<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webcastle?a=iYP9rZFXg3s:BMIHCI_9gww:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webcastle?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=iYP9rZFXg3s:BMIHCI_9gww:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webcastle?i=iYP9rZFXg3s:BMIHCI_9gww:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=iYP9rZFXg3s:BMIHCI_9gww:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webcastle?i=iYP9rZFXg3s:BMIHCI_9gww:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webcastle/~4/iYP9rZFXg3s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webcastletech.com/portfolio/indian-blood-bank/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://webcastletech.com/portfolio/indian-blood-bank</feedburner:origLink></item>
		<item>
		<title>Green House</title>
		<link>http://feedproxy.google.com/~r/webcastle/~3/xsrvomm3dKE/green-house</link>
		<comments>http://webcastletech.com/portfolio/green-house#comments</comments>
		<pubDate>Sat, 21 Apr 2012 11:42:31 +0000</pubDate>
		<dc:creator>Castler</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Web design]]></category>

		<guid isPermaLink="false">http://webcastletech.com/?p=1097</guid>
		<description />
			<content:encoded><![CDATA[<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webcastle?a=xsrvomm3dKE:IqhCHRyaNHU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webcastle?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=xsrvomm3dKE:IqhCHRyaNHU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webcastle?i=xsrvomm3dKE:IqhCHRyaNHU:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=xsrvomm3dKE:IqhCHRyaNHU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webcastle?i=xsrvomm3dKE:IqhCHRyaNHU:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webcastle/~4/xsrvomm3dKE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webcastletech.com/portfolio/green-house/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://webcastletech.com/portfolio/green-house</feedburner:origLink></item>
		<item>
		<title>Dubai Domain Auction</title>
		<link>http://feedproxy.google.com/~r/webcastle/~3/ZbC0OuNZ5w4/dubai-domain-auction-2</link>
		<comments>http://webcastletech.com/portfolio/dubai-domain-auction-2#comments</comments>
		<pubDate>Sat, 21 Apr 2012 11:23:17 +0000</pubDate>
		<dc:creator>Castler</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Web design]]></category>

		<guid isPermaLink="false">http://webcastletech.com/?p=1087</guid>
		<description />
			<content:encoded><![CDATA[<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webcastle?a=ZbC0OuNZ5w4:p_3pUy7Ov2c:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webcastle?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=ZbC0OuNZ5w4:p_3pUy7Ov2c:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webcastle?i=ZbC0OuNZ5w4:p_3pUy7Ov2c:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=ZbC0OuNZ5w4:p_3pUy7Ov2c:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webcastle?i=ZbC0OuNZ5w4:p_3pUy7Ov2c:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webcastle/~4/ZbC0OuNZ5w4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webcastletech.com/portfolio/dubai-domain-auction-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://webcastletech.com/portfolio/dubai-domain-auction-2</feedburner:origLink></item>
		<item>
		<title>Cyber Unicorn</title>
		<link>http://feedproxy.google.com/~r/webcastle/~3/7OdcLRTwKdg/cyber-unicorn</link>
		<comments>http://webcastletech.com/portfolio/cyber-unicorn#comments</comments>
		<pubDate>Sat, 21 Apr 2012 10:49:49 +0000</pubDate>
		<dc:creator>Castler</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Web design]]></category>

		<guid isPermaLink="false">http://webcastletech.com/?p=1073</guid>
		<description />
			<content:encoded><![CDATA[<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webcastle?a=7OdcLRTwKdg:OVVjyq35GWY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webcastle?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=7OdcLRTwKdg:OVVjyq35GWY:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webcastle?i=7OdcLRTwKdg:OVVjyq35GWY:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=7OdcLRTwKdg:OVVjyq35GWY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webcastle?i=7OdcLRTwKdg:OVVjyq35GWY:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webcastle/~4/7OdcLRTwKdg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webcastletech.com/portfolio/cyber-unicorn/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://webcastletech.com/portfolio/cyber-unicorn</feedburner:origLink></item>
		<item>
		<title>Minister Adoor Prakash inaugurated Mohanlal’s Blood Bank</title>
		<link>http://feedproxy.google.com/~r/webcastle/~3/8ogOwGZJ3gQ/minister-adoor-prakash-inaugurated-mohanlals-blood-bank</link>
		<comments>http://webcastletech.com/blog/minister-adoor-prakash-inaugurated-mohanlals-blood-bank#comments</comments>
		<pubDate>Mon, 16 Apr 2012 17:00:50 +0000</pubDate>
		<dc:creator>Castler</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[News & Events]]></category>

		<guid isPermaLink="false">http://webcastletech.com/?p=1048</guid>
		<description><![CDATA[Kerala state minister Mr. Adoor Prakash inaugurated Actor Mohanlal's website IndianBloodBank.com developed by WebCastle ]]></description>
			<content:encoded><![CDATA[<p>Our new web portal <a href="http://indianbloodbank.com" target="_blank">www.indianbloodbank.com</a> which was an non profit initiative by Actor Mohanlal has been launched, helping patients anywhere in the country get required services within 24 hours and also through which interested donors can register themselves and donate.</p>
<p>A joint initiative of the Indian Blood Bank Society, of which cine actor Mohanlal is the brand ambassador. We have developed the portal with specific technical features such as free e-call system, used for the first time in a blood bank.</p>
<p>Former health minister Adoor Prakash, (Current state minister for Revenue &#038; Coir) inaugurated the facility at a function at IMA house in Cochin. Actor Mohanlal and magician R.K. Malayath were present.</p>
<p>The minister said now the public could get rare blood groups through the initiative as donors (16 blood groups) had been classified district and area wise so as to locate the nearest one.</p>
<p><a href='http://webcastletech.com/blog/minister-adoor-prakash-inaugurated-mohanlals-blood-bank/attachment/1990001219_n' title='Minister Adoor Prakash Inaugurating indianbloodbank.com '><img width="150" height="150" src="http://webcastletech.com/wp-content/uploads/2012/04/1990001219_n-150x150.jpg" class="attachment-thumbnail" alt="Minister Adoor Prakash Inaugurating indianbloodbank.com" title="Minister Adoor Prakash Inaugurating indianbloodbank.com" /></a><br />
<a href='http://webcastletech.com/blog/minister-adoor-prakash-inaugurated-mohanlals-blood-bank/attachment/895716284_n' title='Actor Mohanlal Introducing indianbloodbank '><img width="150" height="150" src="http://webcastletech.com/wp-content/uploads/2012/04/895716284_n-150x150.jpg" class="attachment-thumbnail" alt="Actor Mohanlal Introducing indianbloodbank" title="Actor Mohanlal Introducing indianbloodbank" /></a><br />
<a href='http://webcastletech.com/blog/minister-adoor-prakash-inaugurated-mohanlals-blood-bank/attachment/348867331_n' title='Our CTO Remiz Rahnas accepting Technology Partner Memento from Minister Adoor Prakash &amp; Mohan Lal '><img width="150" height="150" src="http://webcastletech.com/wp-content/uploads/2012/04/348867331_n-150x150.jpg" class="attachment-thumbnail" alt="Our CTO Remiz Rahnas accepting Technology Partner Memento from Minister Adoor Prakash &amp; Mohan Lal" title="Our CTO Remiz Rahnas accepting Technology Partner Memento from Minister Adoor Prakash &amp; Mohan Lal" /></a><br />
<a href='http://webcastletech.com/blog/minister-adoor-prakash-inaugurated-mohanlals-blood-bank/attachment/1878068864_n' title='Inauguration ceremony'><img width="150" height="150" src="http://webcastletech.com/wp-content/uploads/2012/04/1878068864_n-150x150.jpg" class="attachment-thumbnail" alt="Inauguration ceremony" title="Inauguration ceremony" /></a><br />
<a href='http://webcastletech.com/blog/minister-adoor-prakash-inaugurated-mohanlals-blood-bank/attachment/16blood-jpg-crop_display' title='Minister Adoor Prakash &amp; Mohanlal at Website Launch'><img width="150" height="150" src="http://webcastletech.com/wp-content/uploads/2012/04/16BLOOD.jpg.crop_display-150x150.jpg" class="attachment-thumbnail" alt="Minister Adoor Prakash &amp; Mohanlal at Website Launch" title="Minister Adoor Prakash &amp; Mohanlal at Website Launch" /></a><br />
<a href='http://webcastletech.com/blog/minister-adoor-prakash-inaugurated-mohanlals-blood-bank/attachment/1080065_n' title='Castlers with Actor Mohanlal at inauguration ceremony'><img width="150" height="150" src="http://webcastletech.com/wp-content/uploads/2012/04/1080065_n-150x150.jpg" class="attachment-thumbnail" alt="Castlers with Actor Mohanlal at inauguration ceremony" title="Castlers with Actor Mohanlal at inauguration ceremony" /></a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webcastle?a=8ogOwGZJ3gQ:yJqSow2clJk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webcastle?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=8ogOwGZJ3gQ:yJqSow2clJk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webcastle?i=8ogOwGZJ3gQ:yJqSow2clJk:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=8ogOwGZJ3gQ:yJqSow2clJk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webcastle?i=8ogOwGZJ3gQ:yJqSow2clJk:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webcastle/~4/8ogOwGZJ3gQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webcastletech.com/blog/minister-adoor-prakash-inaugurated-mohanlals-blood-bank/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://webcastletech.com/blog/minister-adoor-prakash-inaugurated-mohanlals-blood-bank</feedburner:origLink></item>
		<item>
		<title>Get list of all cookies using Javascript</title>
		<link>http://feedproxy.google.com/~r/webcastle/~3/zWrqm8HcHxQ/get-list-of-all-cookies-using-javascript</link>
		<comments>http://webcastletech.com/blog/get-list-of-all-cookies-using-javascript#comments</comments>
		<pubDate>Tue, 10 Jan 2012 07:01:39 +0000</pubDate>
		<dc:creator>Castler</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Web design]]></category>

		<guid isPermaLink="false">http://webcastletech.com/?p=1029</guid>
		<description><![CDATA[JavaScript code snippet to get array of http cookies available on the domain. Ready to go Script for Firebug console]]></description>
			<content:encoded><![CDATA[<p>Its very common that we all still use HTTP cookies for storing various data on visitor&#8217;s browser. But in HTML5, you can use local storage. I&#8217;m talking about the old school cookies here as we still have old browsers to take care of.</p>
<p><a href="http://webcastletech.com/wp-content/uploads/2012/01/DSC_0203.jpg"><img src="http://webcastletech.com/wp-content/uploads/2012/01/DSC_0203.jpg" alt="" title="Get list of all cookies using Javascript" class="alignnone size-medium wp-image-1031" /></a></p>
<p>Following is the code snippet to log all cookies of the domain in the firebug console. </p>
<pre class="qoate-code">
function get_cookies_array() {

    var cookies = { };

    if (document.cookie &#038;&#038; document.cookie != '') {
        var split = document.cookie.split(';');
        for (var i = 0; i &lt; split.length; i++) {
            var name_value = split[i].split("=");
            name_value[0] = name_value[0].replace(/^ /, '');
            cookies[decodeURIComponent(name_value[0])] = decodeURIComponent(name_value[1]);
        }
    }

    return cookies;

}
var cookies = get_cookies_array();
for(var name in cookies) {
 console.log( name + " : " + cookies[name] + "&lt;br /&gt;" );
}
</pre>
<p>You just need to copy the entire code and paste in the console and run it. Or else, you can also just copy paste and use your own way or alert on page load. Its just that simple! .</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webcastle?a=zWrqm8HcHxQ:OjAMhRsUJYg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webcastle?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=zWrqm8HcHxQ:OjAMhRsUJYg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webcastle?i=zWrqm8HcHxQ:OjAMhRsUJYg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=zWrqm8HcHxQ:OjAMhRsUJYg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webcastle?i=zWrqm8HcHxQ:OjAMhRsUJYg:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webcastle/~4/zWrqm8HcHxQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webcastletech.com/blog/get-list-of-all-cookies-using-javascript/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://webcastletech.com/blog/get-list-of-all-cookies-using-javascript</feedburner:origLink></item>
		<item>
		<title>Mask site url using php and htaccess proxy</title>
		<link>http://feedproxy.google.com/~r/webcastle/~3/Ca9feqIXeh0/mask-site-url-using-php-and-htaccess-proxy</link>
		<comments>http://webcastletech.com/blog/mask-site-url-using-php-and-htaccess-proxy#comments</comments>
		<pubDate>Wed, 04 Jan 2012 11:13:34 +0000</pubDate>
		<dc:creator>Castler</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://webcastletech.com/?p=1004</guid>
		<description><![CDATA[Simple URL mask script using php and htaccess to keep the address bar url masking the original website url]]></description>
			<content:encoded><![CDATA[<p>Now you want to mirror a website of someone else or your own to a new domain. You can simply set it as an addon domain if you have access to original site&#8217;s hosting control panel. But what if not? If you use htaccess redirects, it promptly redirects to original site.</p>
<p>Another quick way is to use iframes. Just put following code in your index.html of new domain.</p>
<pre class="qoate-code"> &lt;iframe src="http://originalsite.com" height="100%" width="100"&gt;&lt;/iframe&gt; </pre>
<p>But if visitor clicks a link on the page, it wont update the url on the address bar and user fill feel fishy <img src='http://webcastletech.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here is the simple script which makes the masking work. It has two portions a php file and one htaccess file.</p>
<p>What php file does is, it opens the original website and grab the content to bump it back to the browser. In the process, it replaces any text with source site url to your new url. So that links on the site and all resource are called from your new domain itself. Smart! isn&#8217;t it?</p>
<pre class="qoate-code">
# index.php
&lt;?php
// enter your site names here. Just the core url no http or tail slashes
$wc_source = "originalsite.com";
$wc_mirror = "yourawesomedomain.com";
/*
Look hard under this line. But dont try to change unless you are above 18 and know how to read awasthakiyoguyiomonstia
*/
$sql = $_GET['sql'];
$URL = "http://".$wc_source."/".$sql;
$fullPath = $URL;
$base = '&lt;base href="'.$URL.'"&gt;';
$host = preg_replace('/^[^\/]+\/\//','',$URL);
$tarray = explode('/',$host);
$host = array_shift($tarray);
$URI = '/' . implode('/',$tarray);
$content = '';
$fp = @fsockopen($host,80,$errno,$errstr,30);
if(!$fp) { echo "Unable to open socked: $errstr ($errno)\n"; exit; }
fwrite($fp,"GET $URI HTTP/1.0\r\n");
fwrite($fp,"Host: $host\r\n");
if( isset($_SERVER["HTTP_USER_AGENT"]) ) { fwrite($fp,'User-Agent: '.$_SERVER["HTTP_USER_AGENT"]."\r\n"); }
fwrite($fp,"Connection: Close\r\n");
fwrite($fp,"\r\n");
while (!feof($fp)) { $content .= fgets($fp, 128); }
fclose($fp);
if( strpos($content,"\r\n") &gt; 0 ) { $eolchar = "\r\n"; }
else { $eolchar = "\n"; }
$eolpos = strpos($content,"$eolchar$eolchar");
$content = substr($content,($eolpos + strlen("$eolchar$eolchar")));
$content = str_replace($wc_source,$wc_mirror,$content);
// replaces paths with / in the begining without full url. not required unless you are in subfolder
$content = str_replace('href="/','href="http://'.$wc_mirror.'/',$content);
$content = str_replace('src="/','src="http://'.$wc_mirror.'/',$content);

// $fsize = filesize($fullPath);
    $path_parts = pathinfo($fullPath);
    $ext = strtolower($path_parts["extension"]); 

    // Determine Content Type
    switch ($ext) {
      case "pdf": $ctype="application/pdf"; break;
      case "exe": $ctype="application/octet-stream"; break;
      case "zip": $ctype="application/zip"; break;
      case "doc": $ctype="application/msword"; break;
      case "xls": $ctype="application/vnd.ms-excel"; break;
      case "ppt": $ctype="application/vnd.ms-powerpoint"; break;
      case "gif": $ctype="image/gif"; break;
      case "png": $ctype="image/png"; break;
      case "jpeg": $ctype="image/jpg"; break;
      case "jpg": $ctype="image/jpg"; break;
      case "js": $ctype="text/javascript"; break;
      case "css": $ctype="text/css"; break;
    } 

    header("Pragma: public"); // required
    header("Expires: 0");
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header("Cache-Control: private",false); // required for certain browsers
    header("Content-Type: $ctype");
    header("Content-Transfer-Encoding: binary");
//    header("Content-Length: ".$fsize); 

if( preg_match('/&lt;head\s*&gt;/i',$content) ) { echo( preg_replace('/&lt;head\s*&gt;/i','&lt;head&gt;'.$base,$content,1) ); }
else { echo ( str_replace($wc_source,$wc_mirror,preg_replace('/&lt;([a-z])([^&gt;]+)&gt;/i',"&lt;\\1\\2&gt;".$base,$content,1) ));
}
?&gt;
</pre>
<p>Now its true that you don&#8217;t have any other resource / files on the new domain server. Here comes the htaccess to play its role. htaccess sends all requests to index.php with full path so that index.php can return content for corresponding files from Original website.</p>
<pre class="qoate-code">
#htaccess file
&lt;IfModule mod_rewrite.c&gt;
    RewriteEngine On
    RewriteBase /
    #Checks to see if the user is attempting to access a valid file,
    #such as an image or css document, if this isn't true it sends the
    #request to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php?sql=$1 [L]
&lt;/IfModule&gt;
</pre>
<p>Implementation is very straight forward. You just need to put in the source and mirror urls in the php file. Everything works out of the box.</p>
<p>Once the files are set with proper urls, when you go to <strong>newdomain.com</strong> , it will show you content from <strong>originalsite.com</strong> and all links will word as of <strong>newdomain.com/link.html</strong> </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webcastle?a=Ca9feqIXeh0:K4ZTLNn7liU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webcastle?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=Ca9feqIXeh0:K4ZTLNn7liU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webcastle?i=Ca9feqIXeh0:K4ZTLNn7liU:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=Ca9feqIXeh0:K4ZTLNn7liU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webcastle?i=Ca9feqIXeh0:K4ZTLNn7liU:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webcastle/~4/Ca9feqIXeh0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webcastletech.com/blog/mask-site-url-using-php-and-htaccess-proxy/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://webcastletech.com/blog/mask-site-url-using-php-and-htaccess-proxy</feedburner:origLink></item>
		<item>
		<title>Debug live site with local css file</title>
		<link>http://feedproxy.google.com/~r/webcastle/~3/xEeGX_mVSuk/debug-live-site-with-local-css-file</link>
		<comments>http://webcastletech.com/blog/debug-live-site-with-local-css-file#comments</comments>
		<pubDate>Mon, 28 Nov 2011 10:19:20 +0000</pubDate>
		<dc:creator>Castler</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Web design]]></category>

		<guid isPermaLink="false">http://webcastletech.com/?p=996</guid>
		<description><![CDATA[Developers at WebCastle shares idea on how we manage to make quick style changes on the live websites without pain.]]></description>
			<content:encoded><![CDATA[<p>For developers who work with CMS websites, you might need to make some changes on the site once the site has gone live. But you want to see if making changes in the CMS cause any issues with existing website. In general case, you might have all the live content and images on your dev server. But when its the case of Client managed CMS, you might not always have the latest content data with your dev server. So here is a work around, you can switch live site css file with any other (dev server css) you want. All you need to do is, pass your dev css url as a url parameter.</p>
<p>www.livesite.com/?css=http://localhost/myproject/style.css &#8211; This will load style.css from your local server.</p>
<p>How to do that ?</p>
<p>Its ptety basic self explanatory php code as below.</p>
<pre>&lt;?php
function putStyle() {
  if(isset($_GET["css"])) {
  print(' &lt;link rel="stylesheet" href="'.$_GET["css"].'" /&gt; '); // loads value of parameter css
  }
  else {
  print ('&lt;link rel="stylesheet" href="css/style.css" /&gt;'); // change to your default css
  }
  };
putStyle();
?&gt;</pre>
<p>Now, instead of using link tag to add style file, you just need to paste the above code or include the file which has above code. See the screenshot to know what I mean.</p>
<p><a href="http://webcastletech.com/wp-content/uploads/2011/11/style-switch.jpg"><img class="alignnone size-full wp-image-1001" title="Load local css file to live site without touching code" src="http://webcastletech.com/wp-content/uploads/2011/11/style-switch.jpg" alt="" width="617" height="332" /></a></p>
<p>So this is how we do work on the live sites with real time site updates. Tell us how you do that in comments.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webcastle?a=xEeGX_mVSuk:EFktbxpo--s:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webcastle?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=xEeGX_mVSuk:EFktbxpo--s:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webcastle?i=xEeGX_mVSuk:EFktbxpo--s:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webcastle?a=xEeGX_mVSuk:EFktbxpo--s:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webcastle?i=xEeGX_mVSuk:EFktbxpo--s:V_sGLiPBpWU" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webcastle/~4/xEeGX_mVSuk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webcastletech.com/blog/debug-live-site-with-local-css-file/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://webcastletech.com/blog/debug-live-site-with-local-css-file</feedburner:origLink></item>
	</channel>
</rss>

