cancella questa riga:

echo "<meta http-equiv=refresh content=3;url=$PATH_INFO>";