Why might this not work. I have an html doc:
HTML
<head>
<h1><?php include "test.php"; echo "$intro" ?></h1>
</head>
PHP
<?php
$intro = "Welcome to PHP."
?>
Nothing shows up on my page... I just running it from my desktop right now.
Why might this not work. I have an html doc:
HTML
<head>
<h1><?php include "test.php"; echo "$intro" ?></h1>
</head>
PHP
<?php
$intro = "Welcome to PHP."
?>
Nothing shows up on my page... I just running it from my desktop right now.
A couple of things to help you:
well are you running it from a local server?
if you are not running on an actual in house server and your pages don't end in .php it will never work. PHP needs a server to work