Description You just upgraded WordPress and “My Category Order” (widget and functions) do not display any categories. I hate to be you! But wait… Solution This is normal and you can fix it very easily by visiting the “My Category Order” page. When you visit the plugin page the first time after a WordPress upgrade,… Continue reading My category order not working after WordPress upgrade
You can upgrade your linux system using the package manager APT which is available on debian based distributions: First we have to update all the packages installed: $ sudo apt-get update $ sudo apt-get upgrade Now we make sure that we have the update-manager-core package installed with: sudo apt-get install update-manager-core Then we start the… Continue reading How to upgrade Ubuntu from 8.10 to 9.04 using the command line and the Internet?
The Problem Do you know a method in PHP to check the type of an uploaded file without relying on extension or Mime-type because these two can be faked? Verifying the file type in PHP Relying on the Mime-type of a file submitted by a user is a bad practice, using the extension is even… Continue reading How to check a file type efficiently in PHP?
There are many ways to retrieve files extension with PHP, but we will have to choose one that feets our needs and gives more reliable results. When dealing with file extension you should know that a file extension is not always 3 characters long (ex: foto.jpeg, index.html) and that it doesn’t start after the last… Continue reading Get file extension on PHP
Oddly enough, PHP 5.2.6 is still not available on the default CentOS repositories ([base], [updates], [addons], and [extras]), the latest PHP version available in those repos is PHP 5.1.6! In order to install PHP 5.2.6 you can add the CentOS testing repository and enable it then install or update PHP. To add the CentOS testing… Continue reading Install PHP 5.2.6 on CentOs 5.x
Warning: preg_match() [function.preg-match]: Compilation failed: repeated subpattern is too long at offset 18454 in /var/www/html/[…]/Smarty/Smarty_Compiler.class.php on line 454 It looks that you are running an old version of Smarty, latest version as I write is 2.6.26, you can download it from here.