Technology Insights

How To Not Be Prompted For Every File When Using Linux FTP mget Command

The other day I was attempting to use the Linux ftp command line application to obtain all of the files, sub directories, and files within the sub directories from an FTP site. The first issue I ran into was the issue of being prompted to confirm each and every file that is downloaded. Below I describe how to accomplish turning off the prompt and just to note I ended up using “wget” to download all of the files, sub directories, and files within the sub directories via FTP on the remote server.

Details
Technology Insights

Flexible Upload D3Z Edition WordPress Plugin Not Working On WordPress 3.X

I have been using the Flexible Upload D3Z Edition WordPress plugin for a couple years now on various sites that I work on or manage. To me it provides a much easier interface to upload images while building thumbnails on the fly than the default WordPress image media upload. The issue is the Flexible Upload D3Z Edition plugin has not been updated since WordPress version 2.6.X so it has broken on more than one occasion. So when upgrading to WordPress 3 recently it broke the Flexible Upload D3Z Edition plugin and below I describe how to fix the plugin so it will operate without issue in WordPress 3.X.

Details
Technology Insights

Count How Many Files Are In A Directory And All Sub Directories On A Linux Server

Counting files in Linux is fairly easy by simply listing the files using ls and then using the wc application. Both the ls application and the wc application are core Linux applications and should be installed by default on your server. One thing that I had forgotten how to do was how to count all files in a specific directory as well as all files in each sub directories. The second method I will display below is not 100% accurate because it will count sub directories twice however it is likely you just need a round about method to get an idea of how many files and sub directories you are working with. Below I describe first how to count all files and directories within a single directory and second how to count all the files, sub directories, and files within the sub directories via a Linux shell or command prompt.

Details
Technology Errors

Failed loading /usr/lib/php/zend/ZendOptimizer-5.3.so: cannot open shared object file: No such file or directory

Recently I upgraded PHP 5.2 to PHP 5.3 on a CentOS Linux server because of a PHP 0day and noticed an error complaining about ZendOptimizer-5.3.so which is the library loaded into PHP. After some research I found out that it doesn’t look like Zend Optimizer is available for PHP 5.3 on CentOS Linux and will not be available for PHP 5.3 period. Not a big deal in my scenario as I was using it as well as PHP eAccelerator. This error is easily resolved as long as you do not require the php-zend-optimizer package so if that is the case follow the directions below to resolve the error.

Details