I’m new to PhpStorm, I’m trying to built a new development environment.
My online (“production”) environment is a shared hosting using Linux.
At home I use Windows 10.
My new environment so far has:
- Windows 10
- Php 7.3.3 VC15 x64 Thread Safe unzipped somewhere on my my hard drive.
- exe refered as interpreter in PhpStorm
- php_xdebug-2.7.0-7.3-vc15-x86_64.dll set has debugged in php.ini
In my php code I have
It returns null (or something that is empty).
When I paste it in the terminal is says “'filter_input' is not recognized as an internal or external command, operable program or batch file.”
Well, maybe that’s the type of terminal I’m expecting but the fact that it returns null is a problem.
What should I change so that it returns the same value as in my online environment?
I have tried solutions from https://stackoverflow.com/questions/25232975/php-filter-inputinput-server-request-method-returns-null
including adding "variables_order = "GPCSE"" to php.ini, but it didn’t solve the problem.
Writine filter_var(getenv(‘'DOCUMENT_ROOT ')); instead but it didn’t solve the problem … yet I want to code for my online environment not to adapt my code to my development environment.
Regarding the answers that talk about FastCGI, I have no idea what it is and if I’m using it.
How could I correct this in my local/development environment?