Protecting admin folder with .htaccess in Plesk

This post refers to DotKernel 1, based on Zend Framework 1. If you are looking for DotKernel 3 related posts, go here. In /var/www/vhosts/exampledomain.com/conf/vhost.conf file add this code: AuthType Basic AuthName “My Site Admin” AuthUserFile /var/www/vhosts/exampledomain.com/conf/.htpasswd Require … Read More

WURFL PHP API libraries , GPL versions

GPL versions of WURFL PHP API libraries are ready to be downloaded from here . Version 1.1 is the one integrated in Zend Framework Zend_Htpp_UserAgent component. Version 1.2.1 is the latest released under GPL license. Later Edit: removed because A) … Read More

Golden Rules of Professional PHP Coding

1.  Always use in development and in staging highest error reporting level, and display_errors ON: error_reporting(-1); ini_set(‘display_errors’, 1); 2. Fix every warning or notice that occur. 3. Check regularly server’s error_log for notices/warnings 4. Identify any temporary hack with a … Read More

WURFL PHP API license incompatible with DotKernel

This post refers to DotKernel 1, based on Zend Framework 1. If you are looking for DotKernel 3 related posts, go here. We integrated long time ago the WURFL PHP API into DotKernel code base. At that time, the license … Read MoreRead More

PHP 5.3.6 released. No upgrade possible for WampServer.

PHP 5.3.6 was released, but it come with a bad news for WampServer users: “Windows users: please mind that we do no longer provide builds created with Visual Studio C++ 6” Since WampServer is built using VC++ 6,  is not … Read More

htaccess 301 redirect non-www to www

To always redirect users to the www site (for example: http://dotboost.com to http://www.dotboost.com), add the following lines to .htaccess, right after RewriteEngine On: RewriteCond %{HTTP_HOST} ^dotboost.com [NC] RewriteRule ^(.*)$ http://www.dotboost.com/$1 [L,R=301] … Read More

How To Upgrade Wamp to PHP 5.3.4

1.    Stop WAMP server. 2.    Go to windows.php.net and download the the latests ZIPPED package for php5.3.4. Make sure it is the VC6 Thread Safe build. DO NOT DOWNLOAD THE INSTALLER. 3.  Create a folder php5.3.4 into wamp/bin/php … Read MoreRead More

End of Support for PHP 5.2.x Branch

PHP 5.2.14 was just released . And this is the end of support for 5.2.x branch of PHP . NOTE:This release marks the end of the active support for PHP 5.2. Following this release the PHP 5.2 series will receive … Read More

Protection against SQL Injection using PDO and Zend Framework

SQL injection is a technique that exploits a security vulnerability occurring in the database layer of an application. Usually, user input is not filtered by the script and is passed into a SQL statement. PDO – PHP Data Objects – … Read MoreRead More

PHP support back in Aptana 3.0

Aptana 3.0 is in beta stage, can be downloaded from the official site . The very super good news is that Aptana PHP Support is back , based on an annoucement from their forum. And even more,  will be integrated … Read MoreRead More