PHP è lato server, JS lato client.
Prova con il tag html <noscript>