<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How To Get Redirect URL In PHP</title>
	<atom:link href="http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/</link>
	<description>A blog about web development, software business, and WordPress</description>
	<lastBuildDate>Wed, 08 Feb 2012 21:10:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Michel</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-3/#comment-187323</link>
		<dc:creator>Michel</dc:creator>
		<pubDate>Tue, 04 Oct 2011 15:14:27 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-187323</guid>
		<description>This script works great!
Only thing I was wondering is, if it is possible to check the final url with the given redirected url.

Let me give an example:

I want example.com/1
To redirect to example.com/2

With this script I created that I can manually check if the url is correct. But if I have a lot more redirects to check, I would like to handle that automatically like:

I redirected it to example.com/2 now when I run this script, what I would like it to do.

I give an array with the redirect from urls (example.com/1)
And at the check I want it to check if example.com/1 really does go to example.com/2.

I&#039;m not really an expert in PHP so I hope you can give an answer.

Thanks,
Michel</description>
		<content:encoded><![CDATA[<p>This script works great!<br />
Only thing I was wondering is, if it is possible to check the final url with the given redirected url.</p>
<p>Let me give an example:</p>
<p>I want example.com/1<br />
To redirect to example.com/2</p>
<p>With this script I created that I can manually check if the url is correct. But if I have a lot more redirects to check, I would like to handle that automatically like:</p>
<p>I redirected it to example.com/2 now when I run this script, what I would like it to do.</p>
<p>I give an array with the redirect from urls (example.com/1)<br />
And at the check I want it to check if example.com/1 really does go to example.com/2.</p>
<p>I&#8217;m not really an expert in PHP so I hope you can give an answer.</p>
<p>Thanks,<br />
Michel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cheap womens clothes</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-3/#comment-178834</link>
		<dc:creator>cheap womens clothes</dc:creator>
		<pubDate>Sat, 17 Sep 2011 01:03:36 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-178834</guid>
		<description>Hello there, simply become aware of your blog through Google, and located that it&#039;s truly informative. I am going to be careful for brussels. I will be grateful if you continue this in future. A lot of other people will be benefited from your writing. Cheers!</description>
		<content:encoded><![CDATA[<p>Hello there, simply become aware of your blog through Google, and located that it&#8217;s truly informative. I am going to be careful for brussels. I will be grateful if you continue this in future. A lot of other people will be benefited from your writing. Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruth</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-3/#comment-173385</link>
		<dc:creator>Ruth</dc:creator>
		<pubDate>Wed, 24 Aug 2011 11:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-173385</guid>
		<description>Hi 
Worked for many sites, but did not work for http://www.oldcastle.com/.
Can anyone find a solution for this. 
Thanks,
Ruth.</description>
		<content:encoded><![CDATA[<p>Hi<br />
Worked for many sites, but did not work for <a href="http://www.oldcastle.com/" rel="nofollow">http://www.oldcastle.com/</a>.<br />
Can anyone find a solution for this.<br />
Thanks,<br />
Ruth.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prasenjit Das</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-3/#comment-171048</link>
		<dc:creator>Prasenjit Das</dc:creator>
		<pubDate>Fri, 01 Jul 2011 09:46:31 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-171048</guid>
		<description>This helps me a lot.Many thanks.</description>
		<content:encoded><![CDATA[<p>This helps me a lot.Many thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johnny Tsunami</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-3/#comment-168723</link>
		<dc:creator>Johnny Tsunami</dc:creator>
		<pubDate>Wed, 13 Apr 2011 09:55:36 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-168723</guid>
		<description>Good stuff! You helped me, too.</description>
		<content:encoded><![CDATA[<p>Good stuff! You helped me, too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Itzekocke</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-3/#comment-168669</link>
		<dc:creator>Itzekocke</dc:creator>
		<pubDate>Mon, 11 Apr 2011 07:26:13 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-168669</guid>
		<description>Thanks,

that little function helped a lot!

Itzekocke</description>
		<content:encoded><![CDATA[<p>Thanks,</p>
<p>that little function helped a lot!</p>
<p>Itzekocke</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: White Shadow</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-3/#comment-95244</link>
		<dc:creator>White Shadow</dc:creator>
		<pubDate>Sun, 26 Sep 2010 20:06:48 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-95244</guid>
		<description>To check HTTPS URLs, you would need to rewrite the script to use something like &lt;a href=&quot;http://php.net/manual/en/book.curl.php&quot; rel=&quot;nofollow&quot;&gt;curl&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>To check HTTPS URLs, you would need to rewrite the script to use something like <a href="http://php.net/manual/en/book.curl.php" rel="nofollow">curl</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravishankar</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-3/#comment-94230</link>
		<dc:creator>Ravishankar</dc:creator>
		<pubDate>Fri, 24 Sep 2010 10:14:19 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-94230</guid>
		<description>Returning back to comment 26 above my Manish, the URL he mentions consists of (note the secure protocol) https://.....

So, if the URL contains https://, the above codes does not seem to work.  I&#039;m facing the same issue.. any help?

Ravi.</description>
		<content:encoded><![CDATA[<p>Returning back to comment 26 above my Manish, the URL he mentions consists of (note the secure protocol) <a href="https://...." rel="nofollow">https://&#8230;.</a>.</p>
<p>So, if the URL contains https://, the above codes does not seem to work.  I&#8217;m facing the same issue.. any help?</p>
<p>Ravi.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sadik</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-3/#comment-82105</link>
		<dc:creator>Sadik</dc:creator>
		<pubDate>Sat, 28 Aug 2010 06:25:50 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-82105</guid>
		<description>Thanks a million... You saved me the coding :)</description>
		<content:encoded><![CDATA[<p>Thanks a million&#8230; You saved me the coding :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zack Katz</title>
		<link>http://w-shadow.com/blog/2008/07/05/how-to-get-redirect-url-in-php/comment-page-2/#comment-75168</link>
		<dc:creator>Zack Katz</dc:creator>
		<pubDate>Tue, 10 Aug 2010 22:02:31 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/?p=204#comment-75168</guid>
		<description>Thanks for your code - it was useful in determining the canonical tag for a CubeCart installation.</description>
		<content:encoded><![CDATA[<p>Thanks for your code &#8211; it was useful in determining the canonical tag for a CubeCart installation.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

