PHP output is not displayed in the OUTPUT in VS Code - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Tuesday, August 8, 2023

PHP output is not displayed in the OUTPUT in VS Code

I am using code runner and PHP extension pack. I have edit my system variables and added PHP as a path (the php folder is inside XAMPP inside my C drive). I had ran the following the code:

<?php
   $variable = "hello world!";
   echo $variable;
?>

Upon execution, I face this message in the output section

[Running] php "c:\Users\spide\Documents\coding\test.php"

[Done] exited with code=0 in 0.242 seconds

As you can see, there is no output as well as no error message visible. I would like to know what I can do to solve this "error."



source https://stackoverflow.com/questions/76853908/php-output-is-not-displayed-in-the-output-in-vs-code

No comments:

Post a Comment