PHP - Unknown: failed to open stream [closed]

0

Well, I created a basic program that returns two variables in PHP , but I'm having some errors when trying to 'run' the program through WampServer .

As I'm using WampServer , I've created a folder called curso inside the www folder. So far so good, I update the localhost and my project is displayed! As soon as I enter my project, the file containing my code (which returns two variables) is displayed, but when I open this file, I'm having some errors:

Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required 'C:/wamp64/www/curso/#02 - Variáveis.php' (include_path='.;C:\php\pear') in Unknown on line 0

The code:

<!DOCTYPE html>
<html>
<head>
    <title>Variáveis</title>
    <meta charset="utf-8">
</head>
<body>
    <?php
        $txt = "Olá, mundo!";
        $num = 14;
        echo $txt;
        echo $num;
    ?>
</body>
</html>

Does anyone know how I can resolve this error?

    
asked by anonymous 20.11.2017 / 05:44

1 answer

-1

Try to get the accent from the name of the page ... is variable.php put without an accent, the use of an accent in this type of thing is a bad practice

    
21.11.2017 / 11:39