Skip to content

How i can echo only the header that i want? php

So i want to echo only a header not all of them. An example the Server header which contains the information what server it is. Or X-powered: PHP/version header. I know i can use print_r($headers[&…

Mac CLI PHP ini file location

I am using OSX Catalina and am trying to increase the memory limit for PHP – no matter where I look I cannot find the right PHP ini file to change this. When I go to /etc I see: so it looks like there is no php.ini file to be able to change the memory limit but I assume there

How to precompile php opcache using command line?

I’m trying to warm up opcache via opcache.file_cache feature using console command. My opcache.ini: before I start my php-fpm process I compile files by executing scrpt from clommand line: This script generates compiled files to specified (/tmp/.opcache) directory. Then I start php-fpm process, but no p…