dirname($_SERVER['PHP_SELF'])
returns in my case : /blabla/test
I am trying a preg_replace so to remove /blabla/.
I do this :
$dossier = preg_replace('/^\/[0-9a_z]\/$/','',dirname($_SERVER['PHP_SELF']));
what I hoped to be doing was : "find anything that starts with / and ends with / and has 0-9a-z in between. But this is not how to do this.
Thanks