Can I use jquery to inject php?

Hi does anyone know if I can use Jquery to inject php statements? It would be handy to use Jquery to inject <? session_start() ?> before a page DOCTYPE as I have control of page footer but can’t guaratee what will be in the head.
Does anyone know how to do this?


No, JavaScript is executed after the page leaves the server. You can use PHP to inject variables from the server into JQuery but not the other way around.

$(‘<?php echo $selector; ?>’).each(function() { … });