I am setting up some websites and need a little php help. I am trying to use the directory name as a variable and use it in my php file. example:
[url removed, login to view]
I am needing to extract the "ProductNumber1" chunk of this url and use it as a variable.
I have tried: <?php echo dirname($_SERVER['PHP_SELF']); ?>
and that returns:/special/ProductNumber1 I need just "ProductNumber1"
Can anyone help me?