Hi I know to some of you this is a very basic question but I am really struggling with it as i have just recently started using php files. I am trying to figure out why my html page wont print the desired output.
HTML page code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset='utf-8' />
<title>Test</title>
</head>
<body>
<?php
include 'pTest.php';
print $num;
?>
</body>
</html>
PHP file code:
<?php
$num = 1;
?>