Archive for October, 2006

JSON renderer for Text_Highlight

Stoyan Stefanov shared with us his new hack to highlight source code with Text_Highlight rendered in JSON . His class based on HTML renderer, return JSON data instead of HTML. Now you can exchange JSON highlighted code on your AJAX application and display it directly via the JSON renderer for Text_Highlight . Text_Highlighter is one of my favourite PEAR packages, seems like I’m addicted to highlighting source code. After adding BB code and simple HTML renderers and an ABAP code syntax definition, today I played with adding a JSON renderer. Useful in case you want to get highlighted source code in your new shiny AJAX app.

Oracle with PHP and PDO

ThinkPHP blog have an entry on Oracle with PHP and PDO and PHP training for oracle users! Andreas suffered from the fatal semi-colon, which become one of my favorite bugs here since I’m working more than usual with Oracle and facing this frequently, especially that most developers here work locally on MySQL database and the final product run on Oracle Database but we didn’t convert yet to PDO. At the end of the training, our customer got a good first insight into PHP and its PDO connection to the Oracle database server (besides some other subjects). I personally think it’s easier to start PHP with MySQL because for most web based applications it’s a tough and sturdy database handling even some slightly inappropriate statements in the way the developer would assume it to do. On the other hand, if your company uses Oracle, you’ll be able to store your web application data in the same database you use for all other applications if you just know which details might be a little tricky.

Advantages of using the PEAR class naming convention

Over the PHP kitchen, an interesting article on the advantages of using the PEAR class naming convention . Certainly there is many good reasons for using PEAR coding standards, Demian find that the most convincing reason to use the file naming convention, which means that a class located in your include path like Foo/Bar/Baz.php is called Foo_Bar_Baz, is the ability to take advantage of PHP 5’s __autoload magic method. What this means is that if you instantiate the above class, and forgot to require it, it can be located and loaded automatically, from any of hundreds of classes in your include path. function __autoload($class) { $filename = str_replace(‘_’, ‘/’, $class) . ‘.php’; @require_once $filename; }

Wikipedia Goes Mobile

Slashdotted today : ” Webaroo has added Wikipedia to their services on mobile devices . There have also been open source efforts to deliver it to the iPod (also check out the wiki ) or a PDA . I guess if I were still a bartender, this would be a necessity in solving bar disputes before they escalate to fisticuffs.” Great initiatives I think, if we know that Wikipedia requires 6 GB of free space, 10 GB recommended. Bringing wikipedia to mobile devices will certainly be very helpful especially if its based on offline usage.

phpBMS, Open Source Business Managment Software

phpBMS is a Web-based billing, scheduling, and client management system. Its features include PDF generation for printing, mass emailing to clients, repeatable task and event handling, and quote/order/invoice tracking. phpBMS provide also PDF creation for print outs, as well…

Widsets, a New Mobile Experience Just Launched !

I was trying today Widsets , a new great mobile experience to keep you in touch with all web communities in a very cool way. After registering, Widsets send an sms with download link for the software. I have find a version available for my Nokia N80 about 144Kb in size.