get the '/foo' out of 'http://someplace.com/index.php/foo'
<p>As far as I know php has an function to get the '/foo/bar/' out of a URL like: 'http://someplace.com/index.php/foo/bar/'</p>

<p>Can't remember what the function is called.</p>

<p><strong>[edit]</strong></p>

<p>I remember using something like this in ExpressionEngine (<a href="http://expressionengine.com/user_guide/development/usage/uri.html" rel="nofollow">see this</a>). And later coming over an article explaining such a function build in PHP. However I can't recall what it was. </p>

<p><strong>[edit #2]</strong></p>

<p>I know that there are functions to get out the URL and several to manipulate it. However I clearly remember that there were one function doing just this specific thing. Look at the <a href="http://expressionengine.com/user_guide/development/usage/uri.html" rel="nofollow">ExpressionEngine</a> example I linked to too get a better understanding of what I mean.</p>

<p><strong>[edit #3]</strong></p>

<p>It wasn't ExpressionEngine I had used. <a href="http://codeigniter.com/user_guide/libraries/uri.html" rel="nofollow">It was CodeIngniter</a>. But it's basically the same thing.</p>

<p><strong>[edit #4]</strong></p>

<p>Maybe I am wrong. I just remembering walking over just such a function in an article once...
Case closed (unless someone stumble upon just such a function).</p>
