Tag: PHP

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

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

Remove link of comment in WordPress

By default all links posted in the comments under your articles are turned by WordpPress into links. Unfortunately, this features encourages spammers to post many unwanted comments in your blog. To disable turning URLs from comments into actual links, go to your admin area and then navigate to Appearance [...]
Read More

HHVM 3.6 has problem with MariaDB

The same script php file, always works smoothly on HHVM 3.2 to HHVM 3.5. Until I upgrade it to HHVM 3.6. It is a simply script which use mysqli connection and so on. Now it is shown the error as below: I tried to find the answer and faild. [...]
Read More

Some changes on Timthumb script

What is Timthumb? It is a small php script for cropping, zooming and resizing web images (jpg, png, gif).   Here is the official place to donwload the script. https://code.google.com/p/timthumb/ Even the developers said it is not supported any more, there are still a lot of sites or plugins [...]
Read More

PHP bench test results of PHP 5.3, PHP 5.4, and PHP 5.5

It is a bench test. Testing on the testing machine I just installed in the previous post. Including PHP 5.3.28, PHP 5.4.28, and PHP 5.5.12, installed with fastcgi running on Apache and mod_fcgid. PHP 5.3 is 6.567 seconds. -------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2014-05-24 16:27:00 [...]
Read More

PHP 5.3, PHP5.4 and PHP5.5

PHP, as a program language, has its only life cycle. The main three version of PHP is 5.3, 5.4, and 5.5. PHP5.3 will be supported until July, 2014. It is still the main default version in CentOS. PHP5.4 will be supported until March, 2015 PHP 5.5 will be supported [...]
Read More

PHP Accelerator tools

There are a few options I can choose when I setup my PHP environment for my Web Site here. APC – Alternative PHP Cache It is used widely. Free, Open Source framework that caches the output of the PHP bytecode compiler in shared memory. Reduced parsing and disk I/O [...]
Read More