Richard Quadling wrote: > On 5 October 2010 09:07, Gary wrote: >> What I am looking for is a function which you would pass two parts of >> a path to []...] and it would return a string containing the >> parameters separate by the correct number of path separators >> according to the current OS. > Yep. > > function createPathString($d, $f){return $d. DIRECTORY_SEPARATOR . $f;} Yeah, okay, it exists if one creates it :) Thanks for the pointer to DIRECTORY_SEPARATOR, that is at least one better than what I was doing before *whistles innocently* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php