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
– Anderson Henrique
That’s right! Thank you!
– Xx-CODE-xX
Put @Andersonhenrique to close the topic
– Victor