Re: Filesystem path creation function
| From: | Gary | Date: | Tue, 05 Oct 2010 12:17:53 +0000 |
| Subject: | Re: Filesystem path creation function | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-308466@lists.php.net to get a copy of this message | ||
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*