Web Development Articles

Dynamically Disable Required WordPress Contact Form 7 Form Fields

I was recently working on a WordPress form that uses the Contact Form 7 plug-in to build out the form. The client reached out and wanted a new checkbox that, when checked, would make certain fields display and mark them as required. When not checked, they wouldn’t be required or display to be filled in. Here’s the solution I came up with.

Read more ›
Posted in Wordpress Tagged with: ,

Install php-clamav on CentOS 6

Earlier today I posted how to install ClamAV on CentOS 6. Along with ClamAV, you may also wish to use the php-clamav tools, as well. This is a quick guide of what I did to add that, as well.

Read more ›
Posted in Linux, PHP Tagged with: , ,

Install ClamAV on CentOS 6

Recently a project we are working on required us to do virus scans on uploaded files before they were put into the cloud and database. To do this task, we selected ClamAV. Here’s a quick walk-thru on how we got it setup on CentOS 6.

Read more ›
Posted in Linux Tagged with: , ,

Installing MySQL on CentOS 7

So I have finally gotten around to trying out CentOS 7 as a local machine, and I started by doing my normal installs I need for my local development: PHP, MySQL, Modrewrite, etc. But when I went to start MySQL (after not having paid attention to the install messages) I got the error: Failed to issue method call: Unit mysqld.service failed to load: No such file or directory.

Read more ›
Posted in Linux Tagged with: , ,

Test Internet Speed from the Command Line (cli)

Today, I needed to see what the downstream was like for a server I help maintain. Usually in Windows I would go to SpeedTest.net and see what it was, but this isn’t going to easily work on a CentOS server. What to do?

Read more ›
Posted in Linux Tagged with: , , ,

Using Jquery To Select or Deselect All Checkboxes

I recently built a page that lists all orders within a MySQL database and displays them inside a table, one per row. Each row has a checkbox so the end-user can select what orders they want to export to a CSV file. Pretty standard stuff.

Read more ›
Posted in Jquery Tagged with: