point to php.ini, change some logic in validate.php