xxxxxxxxxx
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PHP and HTML Example</title>
</head>
<body>
<h1>Welcome to my website</h1>
<?php
// This is a PHP block embedded within the HTML
$name = "John";
echo "<p>Hello, $name!</p>";
?>
<p>This is a paragraph in HTML.</p>
<?php
// More PHP embedded within the HTML
$favoriteColor = "blue";
echo "<p>Your favorite color is $favoriteColor.</p>";
?>
</body>
</html>
xxxxxxxxxx
$link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]";