General Introduction
Features
Settings
Email system
Date and Time
URL rewrite
Special constants
Special variables
Complex logic in filter
CombinePath
Copy
CreateDirectory
Delete
DirectoryExists
ExtractNameFromPath
ExtractPathFromPath
FileExists
GetDirectory
GetFile
Move
RelativeToAbsolutePath
SiteRelativeToAbsolutePath
ValidateFalenameString
ValidatePathString
SiteRelativeToAbsolutePath
string CBXVirtualIo::SiteRelativeToAbsolutePath( string $relativePath, string $site = null );
The method converts specified site root path to absolute path. The path is converted to standard format. Non-static method.
Parameters
Parameter | Description |
---|---|
relativePath | Relative path |
site | Site domain |
Example
echo $io->SiteRelativeToAbsolutePath("/path1/index.php", "s1"); // returns :/Projects/site1/s1/path1/index.php
© «Bitrix24», 2001-2024
Up