<?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 for insightmedia</title>
	<atom:link href="http://insightmed.eu/blog/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://insightmed.eu/blog</link>
	<description>be the change you want to see in the world</description>
	<lastBuildDate>Thu, 29 Sep 2011 16:55:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on [rb]Get relative url with symfony by CheeseLurker</title>
		<link>http://insightmed.eu/blog/programming-scripting/rbget-relative-url-with-symfony_2010_12.html/comment-page-1#comment-3705</link>
		<dc:creator>CheeseLurker</dc:creator>
		<pubDate>Thu, 29 Sep 2011 16:55:05 +0000</pubDate>
		<guid isPermaLink="false">http://insightmed.eu/blog/?p=79#comment-3705</guid>
		<description>This does not work as expected on a windows server.
My DOCUMENT_ROOT and sf_web_dir is:
string &#039;C:/wamp/www&#039; (length=11)
string &#039;C:\wamp\www\project\web&#039; (length=23)
And getUrlLocation() returns: 
string &#039;C:\wamp\www\project\web&#039; (length=23)

You could fix your function, but symfony already has this functioniality:
function get_base_url() {
    $request = sfContext::getInstance()-&gt;getRequest();
    return $request-&gt;getRelativeUrlRoot();
}
This returns: string &#039;/project/web&#039; (length=12)

If you want the absolute URL with http://servername/..., use this:
function get_base_url() {
    $request = sfContext::getInstance()-&gt;getRequest();
    return $request-&gt;getUriPrefix() . $request-&gt;getRelativeUrlRoot();
}
string &#039;http://localhost/project/web&#039; (length=28)</description>
		<content:encoded><![CDATA[<p>This does not work as expected on a windows server.<br />
My DOCUMENT_ROOT and sf_web_dir is:<br />
string &#8216;C:/wamp/www&#8217; (length=11)<br />
string &#8216;C:\wamp\www\project\web&#8217; (length=23)<br />
And getUrlLocation() returns:<br />
string &#8216;C:\wamp\www\project\web&#8217; (length=23)</p>
<p>You could fix your function, but symfony already has this functioniality:<br />
function get_base_url() {<br />
    $request = sfContext::getInstance()-&gt;getRequest();<br />
    return $request-&gt;getRelativeUrlRoot();<br />
}<br />
This returns: string &#8216;/project/web&#8217; (length=12)</p>
<p>If you want the absolute URL with <a href="http://servername/" rel="nofollow">http://servername/</a>&#8230;, use this:<br />
function get_base_url() {<br />
    $request = sfContext::getInstance()-&gt;getRequest();<br />
    return $request-&gt;getUriPrefix() . $request-&gt;getRelativeUrlRoot();<br />
}<br />
string &#8216;http://localhost/project/web&#8217; (length=28)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on [rb] Load all forms/links within tabs in the same place with jquery by Vicc San</title>
		<link>http://insightmed.eu/blog/programming-scripting/rb-load-all-forms-within-tabs-in-the-same-place-with-jquery_2010_12.html/comment-page-1#comment-3128</link>
		<dc:creator>Vicc San</dc:creator>
		<pubDate>Wed, 29 Jun 2011 00:12:27 +0000</pubDate>
		<guid isPermaLink="false">http://insightmed.eu/blog/?p=86#comment-3128</guid>
		<description>Thank you so much for the submit form code :) works like a charm!</description>
		<content:encoded><![CDATA[<p>Thank you so much for the submit form code <img src='http://insightmed.eu/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  works like a charm!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on [rb] sfWebBrowser login asp.net by Mark Ruffo</title>
		<link>http://insightmed.eu/blog/programming-scripting/rb-sfwebbrowser-login-asp-net_2010_10.html/comment-page-1#comment-2949</link>
		<dc:creator>Mark Ruffo</dc:creator>
		<pubDate>Sat, 30 Apr 2011 19:58:12 +0000</pubDate>
		<guid isPermaLink="false">http://insightmed.eu/blog/?p=14#comment-2949</guid>
		<description>nice site</description>
		<content:encoded><![CDATA[<p>nice site</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on [rb]Debug a symfony object by T Shirt Template</title>
		<link>http://insightmed.eu/blog/programming-scripting/rbdebug-a-symfony-object_2010_12.html/comment-page-1#comment-67</link>
		<dc:creator>T Shirt Template</dc:creator>
		<pubDate>Tue, 14 Dec 2010 10:10:09 +0000</pubDate>
		<guid isPermaLink="false">http://insightmed.eu/blog/?p=92#comment-67</guid>
		<description>You clearly know what youre talking about, why waste your intelligence on just posting videos to your blog when you could be giving us something enlightening to read?</description>
		<content:encoded><![CDATA[<p>You clearly know what youre talking about, why waste your intelligence on just posting videos to your blog when you could be giving us something enlightening to read?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on [rb]Debug a symfony object by polar f4</title>
		<link>http://insightmed.eu/blog/programming-scripting/rbdebug-a-symfony-object_2010_12.html/comment-page-1#comment-54</link>
		<dc:creator>polar f4</dc:creator>
		<pubDate>Wed, 08 Dec 2010 10:50:59 +0000</pubDate>
		<guid isPermaLink="false">http://insightmed.eu/blog/?p=92#comment-54</guid>
		<description>Great job on the blog, it looks great. I am going to bookmark it and will make sure to check back weekly</description>
		<content:encoded><![CDATA[<p>Great job on the blog, it looks great. I am going to bookmark it and will make sure to check back weekly</p>
]]></content:encoded>
	</item>
</channel>
</rss>

