HEX
Server: Apache
System: Linux charming-tharp.85-214-77-183.plesk.page 6.8.0-60-generic #63-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 19:04:15 UTC 2025 x86_64
User: was-logistics.com_j7jix1vn2c (10008)
PHP: 8.3.6
Disabled: opcache_get_status
Upload Files
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>