init read ap.php