We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Environment variables

Hi,

Are environment variables printed on the debug page?

I don't know but you can print it with var_dump($_ENV); and/or var_dump($_SERVER)

Good luck

edited Jun '19

At first it seems like they aren't exposed on a webpage anywhere (which is how I think it should be), but I was just asking because it would be a really bad practice to print such information on debug pages.

Other frameworks do this while convincing themselves this is totally fine, but it seems Phalcon doesn't luckily...