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?