title: php rename function is not working
body: <p>I have written the following Codeigniter function to rename a folder but its not working, the folder also contains 2 sub-folders and that folders contains some CSS and image files.</p>
  
  <pre><code>    function _rename_theme_folder($old_name, $new_name){
        echo THEMES_BASE_URL . $old_name."&lt;br&gt;";
        echo THEMES_BASE_URL . $new_name;
        rename(THEMES_BASE_URL . $old_name, THEMES_BASE_URL . $new_name);
        exit;
      }
  </code></pre>
  
  <p><strong>Note:</strong> I can read and write files to the same directory but renaming is not working.</p>
  
  <p><strong><em>Output of the above function:</em></strong></p>
  
  <pre><code>D:\wwwroot\ds_menu\static\front\naveed
  D:\wwwroot\ds_menu\static\front\naveedkhan
  </code></pre>