2004/10/5 14:23
ralf57
Quite a regular
Posts: 231
Since: 2003/2/3 1
2004/10/5 14:43
Dave_L
XOOPS is my life!
Posts: 2277
Since: 2003/11/7
$folder = substr(XOOPS_ROOT_PATH, strrpos(XOOPS_ROOT_PATH, '/') + 1);
2004/10/5 15:23
Dave_L wrote: $folder = substr(XOOPS_ROOT_PATH, strrpos(XOOPS_ROOT_PATH, '/') + 1); P.S. If this is intended for a module, or code that others would use, it needs to be more general (handle \ as well as /), and maybe should check for errors such as XOOPS_ROOT_PATH having a trailing /.
2004/10/5 15:34
$folder = basename(XOOPS_ROOT_PATH);
Advanced Search
296 user(s) are online (212 user(s) are browsing Support Forums)
Members: 0
Guests: 296