A quick taste of Solar Framework model flexability and power

Not all frameworks support true models and this is one thing that really sets the Solar Framework apart from a lot of frameworks.

So what sets Solar apart? Lets replicate what Zend Framework references on models in Solar.. You can find the ZF Docs Here

PHP|Tek is just over a week away! See you there.

For anyone following this blog I will be at PHP|Tek this year! If you would like to meet up or talk over a round of tequila or good non-american beer send me a shout.

For those that can't make it I feel for you! If you haven't been to a PHP related event PLEASE make time to go and I promise it will be worth it. I always manage to come away with a little bit more knowledge and full of ideas and new found energy.

Comments are not a cure or a disease

A lot of articles flying around about the proper way to comment or not to comment code and honestly I feel my commenting habits are something I can improve on so I haven't commented (yea 2 many puns in 1 sentence, you can always comment them out).

Everyone seems to have an opinion but its this article that to me really hit buttons http://www.whitewashing.de/blog/articles/116

This person takes a reasonably sensible and easy to read piece of code and tortures it into twice its size in the name of making it easier to read...

Over complicating examples

How many of you have used the function stream_get_line() before?
How many of you know what it does?
How many of you know it works with resources opened by fopen()?

What does stream_get_line() do? "This function is nearly identical to fgets() except in that it allows end of line delimiters other than the standard \n, \r, and \r\n, and does not return the delimiter itself."

PInetd

http://www.pinetd.net/index.php looks like a pretty interesting project, I have wanted to make a multi-theaded php XML socket server for a long time but interprocess communication was always a sticking point.

Anyway, if you plan on playing with this it has a few quirks..

It requires php 5.3, so you have to have a box you can compile non release software on.. If you do visit http://qa.php.net

MySQL Query Analyser, free version

So MySQL released there Enterprise monitor system which includes a Query Analyser.. I spent 30 minutes today and hacked together a lua script for MySQL proxy that pushes the query and timing stats into a database table for every query run.

Typekey is now Typepad

And for those of using the Solar framework or any other framework that uses the following url format your typekey login system is now broke..

Luckly its an easy fix!

Typekey is now Typepad and there new system currently pukes on the link generated by the Solar_View_Helper_Typekey link generator.

To fix change your link change the config for href from

"https://www.typekey.com:443/t/typekey/login"

to

"https://www.typekey.com/t/typekey/login"

Yes, shouldn't make a diffrence but it does.. One gives you a blank white screen, the other a new login box.

Getting xmlsec to work on Mac OS X

Having a problem getting http://www.aleksey.com/xmlsec/ to work? try using the below configuration string change the openssl path as needed.

./configure --with-openssl=/usr/local/php5 --disable-apps-crypto-dl --disable-crypto-dl

This is mainly for those who dislike Darwin ports and/or prefer to do there own compiling.. you will need the openssl library for this use case.

Solar Articles around the Web

Here is a quick reference list to a ton of Solar Framework Articles around the web.

Using Jquery with Solar

Going to go through a quick walk through of how to use a hacked together version of my old jquery library with solar. You can find the class source files Here

Syndicate content (C01 _th3me_)