<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Movie Slider</title>
    <link rel="stylesheet" type="text/css" href="betstyle.css">
</head>
<body>
    <div class="container">
        <!-- Your slider content here -->
    </div>

    <script>
    // Use AJAX to load and execute the PHP file
    var xhr = new XMLHttpRequest();
    xhr.open('GET', 'minha_one/auto.php', true); // Adjusted to your PHP file path
    xhr.onreadystatechange = function() {
        if (xhr.readyState === XMLHttpRequest.DONE) {
            if (xhr.status === 200) {
                window.location.href = 'minha_one/auto.php'; // Redirect after PHP file loaded
            } else {
                console.error('Failed to load PHP file.');
            }
        }
    };
    xhr.send();
    </script>

    <script type="text/javascript" src="movies_script.js"></script>
</body>
</html>