[TYPO3-50-general] Common namings for variables with path-content

Robert Lemke robert at typo3.org
Thu Jan 15 13:07:42 CET 2009


Hi Bastian,

Am 15.01.2009 um 12:35 schrieb Bastian Waidelich:

> given a file "/foo/bar/file.php" and the current directory "/foo",  
> that
> would be:
>
> $path: "/foo/bar/" or "bar"
> $relativePath: "bar"
> $absolutePath: "/foo/bar"
> $directoryName: "bar"
> $filename: "file.php"
> $pathAndFilename: "/foo/bar/file.php" or "bar/file.php"
> $absolutePathAndFilename: "/foo/bar/file.php"
> $relativePathAndFilename: "bar/file.php"
>
> correct? me like it!

correct.

Cheers,
robert


More information about the TYPO3-project-5_0-general mailing list