|Hi, try this code instead:|
echo “This is a PHP line</p>”;
Notice that I removed the "This is an HTML line" from your code. This looks like an unmarked code comment. If you have unmarked code comments, PHP will not work because it won't know what to do when it comes across that line of code.
Tip, when you test your code in a live environment in real-time:
- FTP the file to the public folder for your domain
- Make sure that you name the file with your code "phpinfo.php", not "phpinfo.html"
- After you have loaded it to your hosting server, you can check by going to your domain URL