File: /var/www/vhosts/was-logistics.com/httpdocs/6q6Mfayx
<<?php
// test.php
// Simple PHP code to display a message
echo "<h1>PHP is working!</h1>";
// PHP code to pass a variable to JavaScript
$phpVariable = "Hello from PHP!";
echo "<script>var phpVariable = '$phpVariable';</script>";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PHP and JavaScript Test</title>
</head>
<body>
<h2>JavaScript Test</h2>
<p id="js-test">JavaScript is not working.</p>
<script>
// Simple JavaScript code to change the text content of the paragraph
document.getElementById('js-test').textContent = "JavaScript is working!";
// Display the PHP variable in an alert
alert(phpVariable);
</script>
</body>
</html>