문제

I'm using FuelPHP and the environment information cannot be passed to my command-line script via the framework htaccess file. I read that I can set the same value by modifying my php.ini file. I'm using XAMPP on my localhost, but it doesn't seem to be working -- getenv('FUEL_ENV') returns nothing. I am missing something.

SetEnv FUEL_ENV production
도움이 되었습니까?

해결책

SetEnv is an Apache directive; it goes in a .htaccess file or your server config files, not in php.ini.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top