Bitrix Site Manager

GetDirPath

string
GetDirPath(
 string path
)

The function GetDirPath returns a parent directory of the specified file given the file path.

Parameters

ParameterDescription
path File path.

See Also

Example



<?
echo GetDirPath("/temp1/data/file.php");
// prints the string "/temp1/data/"
?>