Create mid.php