Hi, Saturday, January 3, 2004, 11:23:00 AM, you wrote: RA> Hi, RA> Thanks for replying.
RA> Basically after that path I am adding a file "ryanFile.php" so I need that RA> ending slash to always be in the path RA> My question was exactly that...how do I "grab" the last character? RA> Thanks, RA> -Ryan I do it like this: $sep = (PHP_OS == 'Windows')? '\':'/'; $template_path .= (substr($template_path,-1) == $sep)? '':$sep; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php