Fixing PHP OPcache mysql_xdevapi Uncaught Error: Call to a member function limit()

I have Been playing with the X DevApi on MySQL 8. It’s really cool idea and I think I will need to write up about it in the near future. Anyway check it out on PHP Docs, https://www.php.net/manual/en/book.mysql-xdevapi.php and on the MySQL site https://dev.mysql.com/doc/x-devapi-userguide/en/devapi-users-introduction.html.

Continue reading...

/assets/img/wordpress-logo.png
Wordpress - Relative Dates for Posts and Comments

I come across a little tip the other day from Relative dates for posts and commentsin wordpress to get your Wordpress posts date in a relative time format, like Twitter (1 min, 1hour, 1day ago), anyway you know what I mean.

View Post
/assets/img/ubuntu_orange_st_hex.png
Fix Locale Setting In Ubuntu Server 12.04

There seems to be a bug in Ubuntu 12.04 with setting locales for users, the root locales are set but this doesn’t seem to filter down to individual user accounts.

View Post
/assets/img/centoslogo.png
Install Fail2Ban on CentOS 6 with Plesk

I just had to install fail2ban on a centOS server with plesk, and thought I write it down as I am going to need it in the future.

View Post
/assets/img/ubuntu_orange_st_hex.png
Upgrading Ubuntu Server from 12.04 to 14.04

My favorite OS apart for OSX is Ubuntu and I thought I would like to have the lastest PHP for my test server, so it’s upgrade time. First make a backup, just in case though I’ve never had a problem ever but you never know. OK so now you have backed up your server it’s time to do the upgrade.

View Post
/assets/img/centoslogo.png
Update PHP to 5.5 on CentOS 6.4

Today I had to update a server running CentOS 6.4 to have PHP 5.5. This is actually easier than you may think.

View Post
/assets/img/mysql.png
A Quick MySQL Backup And Restore

OK Here’s a quick one. We’ve all been there we have a MySQL Database and need to back it up quickly on the command line.

View Post
/assets/img/ZF2-for-ZF-site-logo-01-B-350.png
Building A Zend Framework 2 Application - Introduction

I have been using Zend Framework now for a good few years now and am really impressed with the power it gives me as a developer.

View Post
/assets/img/parrellsplesk11.jpg
Password Protected A Subdomain In Parallels Plesk 11.5

I have just recently had to password protect a subdomain on a server running Plesk and let me tell you it’s not a simple as it should be. My story and how I managed it in the end…

View Post
/assets/img/zf1.png
Creating a Custom Form Filter for Zend_Form - Postcode Filter

Zend Framework 1 has some excellent filters for making sure the input from a form is what you want. That said there are going to be times when creating your own filter is a must, this happened to me the other day as we needed a way to reformat UK postcodes and make sure we had a standard format in the database. Criteria for postcodes was:

View Post
/assets/img/compress.jpg
Compressing your HTML page using PHP

Compressing a HTML page in php in very simple to implement especially if you use a content management system for your website.

View Post