/ LJCPHPCodeDoc / LJCCommonLib / LJCCommon / GetDebugFileName


Parameters
$folder - The folder name.
$fileName - The file name.

Returns

The Debug file spec.

Syntax

PHP
public static function GetDebugFileName(string $folder, string $fileName)

Gets the Debug file name.

Remarks

This function takes a folder name and a file name. It makes sure the folder exists and returns the text "folder/fileName" with the extension "txt".

Example

PHP
 // Must refer to exact same file everywhere in codeline.
 // Path: LJCPHPProjectsDev/GenDoc/LJCDocDataLib
 require_once "../../LJCPHPCommon/LJCCollectionLib.php";
 
 // $debugFileSpec = "Debug\SourceFile.txt"
 $debugFileSpec = LJCCommon::GetDebugFileName("Debug", "SourceFile.php");

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.