function strImageDocURLPath($enumContextType, $enumEntryType, $lFID) { //--------------------------------------------------------------------- // no path testing - use $clsImgDoc->strCatalogPath($enumContextType, $enumEntryType, $lFID) // to create the path //--------------------------------------------------------------------- return DL_CATALOGPATH . '/' . $enumContextType . '/' . $enumEntryType . '/' . strCatalogFID_Directory($lFID); }
private function testCatalogDirFID($enumContextType, $enumEntryType, $lFID) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- $strDir = './catalog/' . $enumContextType . '/' . $enumEntryType . '/' . strCatalogFID_Directory($lFID); $fInfo = get_file_info($strDir); if ($fInfo === false) { if (mkdir($strDir) === false) { screamForHelp('Unable to create catalog directory!: <br>error on line ' . __LINE__ . ',<br>file ' . __FILE__ . ',<br>function ' . __FUNCTION__); } else { write_file($strDir . '/index.html', '<html>Hello, world!</html>'); } } }