Create main.php

this code is main function