ini_set('session.use_strict_mode', 0); // php.ini default ini_set('session.use_trans_sid', 0); ini_set('session.use_cookies', 1); ini_set('session.use_only_cookies', 1); ini_set('session.hash_function', 1); ini_set('session.hash_bits_per_character', 4); session_id($_REQUEST["browser_sesid"]); session_start();
php7 : barcode39 debug Hint : $$bars[$i][4]
//imagefilledrectangle($img, $bars[$i][0], $bars[$i][1], $bars[$i][2], $bars[$i][3], $$bars[$i][4]); imagefilledrectangle($img, $bars[$i][0], $bars[$i][1], $bars[$i][2], $bars[$i][3], ${$bars[$i][4]});
php7 : display_errors = Off
vi /etc/php.ini display_errors = Off systemctl restart php-fpm.service tail -f /var/log/php-fpm/*
Fedora 31 : php7 : runkit7 install Hint
Fedora 31 : php7 : runkit7 install Hint runkit_constant_redefine yum whatprovides pecl yum install php-pear yum whatprovides make yum install git yum whatprovides git yum install make ///git clone https://github.com/zenovich/runkit.git => php5 git clone https://github.com/runkit7/runkit7.git cd runkit pecl install package.xml Build process completed successfully Installing '/usr/lib64/php/modules/runkit7.so' install ok: […]
centos 7 : php5.4 oci8 setup Hit
# rpm -ivh oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm # rpm -ivh oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm # pecl download oci8-1.4.9.tgz # tar xvzf oci8-1.4.9.tgz # cd oci8-1.4.9 # phpize if oracle server installed # ./configure if oracle client installed # ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/11.2/client64/lib # ln -s /usr/include/oracle/11.2/client64/ /usr/lib/oracle/11.2/client64/lib/include # make all # make test # make install # cp modules/oci8.so /usr/lib64/httpd/modules/ […]
resin + php 서버에서 순수 PHP 를 사용하려면 ...
vi /usr/local/resin-3.1.12/conf/app-default.xml 아래 구문을 주석처라하면 된다. <servlet-mapping url-pattern="*.php" servlet-name="resin-php"/> 주석처리 후 <!--servlet-mapping url-pattern="*.php" servlet-name="resin-php"/-->