Our Blog

November 22, 2011
by Julian

Manual upgrade of WURFL xml file in DotKernel

DotKernel Application Framework can be downloaded with WURFL XML file bundled in it, but is quite an old file,  the latest GPL version, from June 2011. Because of license changed of that WURFL file,  this bundled file will not be upgraded anymore by us.

You need to manually upgrade the xml file, if you still want to use it , and of course, please pay attention to license changes.

  1.  Download the wurfl-2.3.xml.zip file.
  2. Rename it to wurfl.zip
  3. Rename the file inside the archive to wurfl.xml
  4. Replace the file /externals/wurfl/wurfl.zip with this new wurfl.zip file
  5. Download the web_browsers_patch.xml file
  6. Replace the /externals/wurfl/web_browsers_patch.xml file with this new one
  7. Go to Admin panel, click on empty wurfl cache  link, then rebuild the cache

Again, please pay attention to WURFL license changes.

 

Posted in DotKernel | Leave a comment

October 18, 2011
by Julian

Remote connections to MySQL server on Plesk based servers

By default, MySql servers on Linux machines where Plesk is installed, have the old_passwords=1 or ON flag.

That mean even if you have MySQL 5.5+ version, it still use old style of password storage, pre-mysql 4.1+

If you try to connect remote, from your local development machine, you will get an ugly error, like:

 

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2000] mysqlnd
cannot connect  to MySQL 4.1+ using the old insecure authentication. Please use an administration
tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password').
This will store a new, and more secure, hash value in mysql.user.
If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove
 the old-passwords flag from your my.cnf file' in

Continue reading

Posted in Best Practice, PHP Development | Leave a comment

October 14, 2011
by Adrian

Adding a second caching layer to WURFL in Dotkernel using APC

On one of our recent projects that used WURFL, response time was an important factor. Profiling revealed that the greatest chunk of response time (up to a few hundred milliseconds) was taken up by WURFL. We realized that its default filesystem cache was too slow for our needs, especially with a relatively high traffic application.

Continue reading

Posted in Best Practice, DotKernel | Leave a comment

October 13, 2011
by Adrian

Zend_Console implementation in DotKernel

Starting with 1.5, DotKernel has a Console bootstrap to easily run PHP scripts from the command line. The most common use for this is to be able to run cron jobs without using wget and going through Apache.

Continue reading

Posted in DotKernel, Zend Framework | Leave a comment

September 7, 2011
by Julian

Zend Server 5.5 Quick Setup on Windows

In order to make  usable a fresh installation of Zend Server 5.5.0 on Windows 7, and be ready for development , few quick steps are required:

Continue reading

Posted in Best Practice, PHP Development | Tagged , , , | Leave a comment