Tags » PHP 2

Create custom session handler in php using mysql database


* Created by gyaneshwar
* Date: 4/4/15
* Time: 3:31 PM
* in distributed system php default session doesn't work we have to implement db or file  or cached (memcached or radis) based session where all server
* access session values form a specific server. 487 more words

PHP Connect To SQL SERVER 2012 Express

Kali ini kita mencoba bagaimana php dapat koneksi ke SQL Server yang lebih tepatnya PHP 5.6 dengan SQL Server 2012 Express. Sebenarnya ide ini berasal dari teman kantor yang ingin mencobanya namun masih gagal. 95 more words


Using php/mysql on Windows Server and XAMPP

Hi Folks,

if you ever used php/mysql on Windows Server and XAMPP (or just Apache or anything) and everything went slow slow slow, then here is one possible solution: 222 more words


Uploading huge files using .htaccess with PHP

Just append following lines in .htaccess file

php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 200
php_value max_input_time 200



macOS Sierra Errors and Fixes

Updating to a new OS has always been a pain for any OS. Mac is no different. A couple of days ago, updated the mac OS from… 372 more words


Find and replace all <? short open tags using regex

In PHPStorm, you can do a regex find and replace. To upgrade a crappy old site using <?, just use the following regex:




systemctl automatically restart service


  1. Ensure systemd services restart on failure by Jon Archer
  2. php-fpm systemd unit with auto-restart by Juan Luis Boya García
  3. systemd Project Web Page

systemd is a system and service manager that runs as PID 1 and starts the rest of the system and services. 70 more words