<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/php/tags/setting</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 19 Jun 2013 16:10:46 GMT</pubDate>
<item>
<title>(PHP) get absolute server path - MMDeveloper</title>
<link>http://snipplr.com/view/12540/get-absolute-server-path/</link>
<description><![CDATA[ <p>This is useful if you have a settings file for your site and your site has countless numbers of includes that use absolute paths. Instead of hardcoding all the paths and changing them all (if your server environment changes) you can make it dynamic.

__FILE__ is the absolute server path to the script executing it. Running it through the dirname function will trim off the filename, leaving only the absolute server path.</p> ]]></description>
<pubDate>Tue, 24 Feb 2009 08:13:20 GMT</pubDate>
<guid>http://snipplr.com/view/12540/get-absolute-server-path/</guid>
</item>
</channel>
</rss>