Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

PhoneGap - Remote error logging (incl. uncaught script errors)

Catching and logging runtime errors, like script errors, in PhoneGap can be a challenge. There are several possibilities to write logs and to handle errors with different advantages and disadvantages.

First, local error logging means to create a functionality to send data to a place where someone cares about. Also this will spam the device with a text file or database, occupies memory and the question "when to send where?" has to be solved.

PHP: UnitTesting, CodeSniffer, MessDetector, etc. in Eclipse

If you want to write high quality PHP code there are some tools to help you. Most of them are available via PEAR installer. I like the installer because of dependency management and easy to use. But there are also other possibilities to install, like manual downloading.

PHP: Profiling with XDebug

Even I am preferring GNOME there are two KDE based open source tools which have done a great job in past for PHP development. One is KCacheGrind for analyzing XDebug profiling data, much more detailed and convincing than WinCacheGrind.

PHP coding on Win7 with Eclipse (missing Linux)


After working for more than two years with ZendStudio and having no licence anymore, I have to switch to Eclipse PDT for PHP development. With the Extensions from pde.dubture.com in combination it nearly fit my needs. I decided also to switch to XDebug to have profiling possibilities again.

PHP - No dynamic implementing interfaces

For developing a little framework I tried to implement interfaces dynamically. But the idea to use the reflection api and the magic method __get does not work. It is not invoked, the compiler breaks before with:
Fatal error: Class Test contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods

PHP-FPM does't start after update

For some reason, after switching the repository to get PHP 5.4 and upgrading on my server, PHP-FPM does not start anymore. I am not sure if the default config name was customized or changed by OS, packaging or myself, but the solution was quite simple to see in /etc/php5/fpm.

PHP Library: HTMLBuilder - Help wanted

Because of I was disappointed that PHP doesn't provide any core functionality to generate valid HTML, I decided 2011 to build little open source library. Mainly focused on supporting developers by adding all needed W3C information in PHPdoc.