PHP - Unknown: failed to open stream

Asked

Viewed 615 times

0

Well, I created a basic program that returns two variables in PHP, however I am having some errors when trying to 'run' the program by Wampserver.

How I’m using the Wampserver, created a folder named curso inside the briefcase www. So far so good, update the localhost and my project is displayed! As soon as I enter my project, it displays the file that contains my code (which returns two variables), but when I open this file, I am 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 fix this mistake?

  • try to remove the accent from the page name... is variables.php put without accent, the use of accent in this kind of thing is a bad practice

  • That’s right! Thank you!

  • Put @Andersonhenrique to close the topic

1 answer

-1


try to remove the accent from the page name... is variables.php put without accent, the use of accent in this kind of thing is a bad practice

  • Explain your answer better, such as the permissions.

  • @Wictorchaves It’s been solved... I just put to close the topic and I believe it is very clear, he put the name of váriaveis.php with accent and just said to take, simple does not have to detail more from here

Browser other questions tagged

You are not signed in. Login or sign up in order to post.