/ Published in: PHP

Useful for comparing file path when developing on different test sites, leaves just file name, also strips named anchors from end
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// REPLACE FOLDERS WITH NOTHING // str_replace(find_this, replace_with_this, string_to_search ); // This strips folder names from the path //$me = ereg_replace ( find_this, replace_with_this, string_to_search ); // This strips #anything from end of url
Comments
