I have a path that looks like:
/home/duke/aa/servers/**servername**/var/...morefiles...
With php, I want to extract the "servername" from the path
Unfortunately I'm not that well versed with php but I came up with something that used strstr()
but I am only using PHP version 5.2 where as one of the parameter functions require 5.3
What could be some code that would return "servername"?