Create pat.php