aggiungi alla fine del file .php questo:

header("Content-Type: text/javascript");
echo "";