Category: L.A.M.P.

How to connect DBF file and read data by PHP script

Afte last post, my php-fpm support the dbase database file now.  Here is an example php script. $db = dbase_open('../db/clients.dbf',0); if ($db){ $record_numbers = dbase_numrecords($db); for ($i = 1; $i <= $record_numbers; $i++) { $row = dbase_get_record_with_names($db, $i); if ( strpos(trim($row['CLIENTNAME']), $clientname) !== FALSE and $row['deleted'] != 1) { [...]
Read More

Install dbase extension on php7, Ubuntu 16.04

I followed the instruction mostly based on mote0230 github. Please be noticed that updating (and probably inserting) with arrays that contain named indexes, is not working. For my project, it is OK. I just need to read the data from dbf files. dbase-pecl-php7 # PHP 7 sudo add-apt-repository ppa:ondrej/php [...]
Read More

What is a seeder and what is a leecher?

When I use Transmission to do the downloading, I see some figures on the web control panel of Transmission. Those are technical terms. Such as Seeder, Leecher, Ratio, Trackers, Peers, etc. So the questions come. What is a seeder? What is a leecher? Let me check it from search [...]
Read More

5 Free SSL Tools You Must Try in 2016

It is 2016, your website must be SSL encrypted. Now, you have questions, how about my server and how about my SSL installation? This is the answer to this question. You must try these five free tools to test, check, analyse your https website. No.1 SSLShopper It is an [...]
Read More

Add my Blog to HSTS preload list

Now my Blog, David Yin Blog is https encrypted . And it is also HSTS enabled. And latest, it is HSTS preload enabled. It has three layers meaning. https support. HSTS enabled. HSTS preload enabled. Let me explain them one by one. First, add https support. I did this [...]
Read More

PHP Benchmark on PHP 7.0

It is a test bed on a VPS. Here is the basic information of it. Ubuntu Linux 14.04.3 Linux 3.13.0-71-generic on x86_64 Intel(R) Xeon(R) CPU L5520 @ 2.27GHz, 1 cores 512MB Memory Nginx 1.9.9 PHP 7.0 [...]
Read More

Email Server Settings for ZOHOMail

Here is a notes for Email Server Settings. It is not just for Email server. It is mainly for DNS setting for Email server. The purpose of it is to prevent from your outgoing email into spam box. I have a web page, which use PHPMailer to send email. [...]
Read More

Remove Old Kernels on CentOS

I know how to remove old Kernels on Ubuntu. But, I don’t know how to do it on CentOS. After googling, I found answer. Go through and see how many kernels here. Three kernels in machine. Delete, remove old kernels. [...]
Read More