Can you use a php include statement inside javasccript to execute?

How would i execute a include statement inside a javascript function?

    ...and thus you can't do that (well, not in any easy way). JS code will execute itself on the clients machine i.e. browser, but PHP will be compiled on the server and then sent to the clients machine i.e. browser as a HTML page.

    However explain more why you need that to achieve because there is a way but only with PHP or only with JavaScript...

      Write a Reply...