Update Index to PHP