PHP and HTML Mixing

PHP simple function calling simple web page that calling phpinfo() function here.

Example the code is :

<?php

phpinfo();

?>

But if we include in HTML it will display  by Browser  PHP will run on Server side.

 

Ex:

<html>

<head>

<title>Simple PHP Function and HTML  Mixing</title>

</head>

<body><br>

<br>

<?php

phpinfo();

?>

</body>

</html>

You must be logged in to post a comment Login