What on earth is PHP doing here?
This first line works perfectly, but when I try to check whether the return of the parse_url is empty or not, my whole execution is stopped and the infamous White screen appears:
Working:
$subFolderCheck = ( strlen( parse_url('http://www.example.com', PHP_URL_PATH)) >1 ? true : false);
Making my script go bananas:
$subFolderCheck = ( empty( parse_url('http://www.example.com', PHP_URL_PATH)) ? true : false);