PHP PHP Basics Getting to Know PHP Intro to Workspaces and PHP Code

console doesn't show anything

i write the code <?php
echo 'Hello World!';
?> and i try to run it in console but it doesn't show anything

Julian Gutierrez
Julian Gutierrez
19,196 Points

Are you working in Workspaces or your own computer environment?

nick coudriau
nick coudriau
Pro Student 820 Points

I am having the same problem, I just started in the php track and when I am working in "workspaces" and try to run my php code in the console area nothing shows up it just moves to the next line as if I had never written any code...?

Workspaces

1 Answer

One thing I encountered is that I hadn't saved my code before trying to run in the console. A handy indicator to check to see if you are hitting the same is the little dot that appears towards the top of your workspace (screenshot). If that appears, save your code and then try the console again. :)

nick coudriau
nick coudriau
Pro Student 820 Points

thank you that fixed it lol I feel so silly .... :P

Don't worry, same here bro. haha