Re: Filesystem path creation function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux