I'm currently using linux and in my PHP scripts, I've used slash many times. it takes time to install and config xampp in win so i thought this is fastest like this
foreach (scanAllDir($filePath) as $childFilename) {
$result[] = $filename . '/' . $childFilename;
}
and
$customCssFile = fopen(__DIR__ . '/templates/custom-css.css', "w");
is this scripts works in windows? thanks