title: PHP + Apache - Parse URL mod_rewrite
body: <p>I want to use mod_rewrite with PHP, parse the URL with this format:</p>
  
  <p><code>http://www.domain.com/Path-to-index.php/Class_to_Load/Function_to_Execute/Arguments_as_array_to_the_function</code></p>
  
  <p>The class to load will be included of the directory <code>classes</code>, with a <code>strtolower</code> then <code>ucfirst</code>, like:</p>
  
  <p><code>http://www.domain.com/Path-to-index.php/SAMPLE</code> will include <code>classes/Sample.php</code> and execute the function <code>action_index</code>, because no function was used.</p>
  
  <p>Then, when this url is open: <code>http://www.domain.com/Path-to-index.php/SAMPLE/Login/User</code>, PHP should include <code>classes/Sample.php</code> and execute <code>action_Login($args = Array(0 =&gt; "User"));</code>.</p>
  
  <p>Please I need to know how to do that.</p>