Tags » PHP 2

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

Okto

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

PHP

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

:D

Php

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

Php

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:

#<\?(?!=|php|xml)#

https://regex101.com/r/yD6dK5/5

PHP

systemctl automatically restart service

References:

  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

Linux

Convert html to pdf using tcpdf in php

Download tcpdf and include require file.

include (‘tcpdf/tcpdf.php’);

Extend default class of tcpdf If you want edit or modify pdf

class MYPDF extends TCPDF {

363 more words
Php