+ 4
Hello guys pls I wrote php code in my html file saved it as a .Html file tried to open it on my browser it didn't work why
<body ><?php echo"hello world"; ?> </body>
4 Antworten
+ 13
Because PHP is executed on server not on the client device.
+ 8
you need a server
search on youtube about xampp tutorial......
i also did the same thing once 😋
and also u must save php as .php not as.html
+ 2
thanks
+ 1
Because PHP is executed on server not on the client device, and while using xamp,wamp servers you have to save your file extension with .php instead of saving with .html extension !