structure of advanced.php