Run the client part of PHP

Is it possible to run the client part of a PHP script using an HTML web page?

If not, is there a way to embed PHP in HTML so that it can work on the client side?

+7
source share
2 answers

I think you want javascript. PHP is for the server side, and javacript is for the client side, among other things.

+7
source

Not. PHP cannot be launched in the browser. Learn javascript or coffescript if you don't like JS syntax.

+2
source

All Articles