Per metterlo in un file php basta che lo scrivi all'inizio del codice, basta che non sia tra i tag <?php e ?>

Codice PHP:
<META HTTP-EQUIV="Pragma" CONTENT="cache"> 
<META HTTP-EQUIV="Cache-Control" CONTENT="cache">


<?php

//... tuo codice

?>