Better than drupal
I'm working on a draft of new content management system. That influences highly from drupal. Mostly concepts developed from drupal. And I Integrate them on a platform. I'm emphasising all these work is in draft. I did write 10lines of code. To attract people let me indicate features.
- node is now page, page is the hearth of the system. Any call any module will depent on page
- Taxonomy integration. Seamlesly any page can be category of other page. For example songs can be categorized with singer, album etc. Now these taxonomy items are not only a link to listing. they are pages(nodes).
- Cck integration. Cck's can influence others. In taxo relation or hierarchy relation. With these interaction system can beyond cms but full programmable system.
- Themes, will carry image, teaser, layout definions.
- Teasers, We dont have only one teaser, or two. There wont be a limit but a countable teasers will be around. We will adjust page type for these teasers. While page needs listing (on a singer page, songs etc.) we choose which teaser to use.
- Blocks are now containers. Mainly 4 type of containers, Lister container (like listing functions of views in drupal), php containers (codeable places with code helper), page content places (Like themes users can share these. Functionality is like php containers)
- Every where is cached. There is nearly nowhere where there is no cache! Cache'ing is 3 fold step. The cacheable part will be stored and a generic name "stat" functions are applied after cache. If our page does not change but time/user/stats etc. change why should we spend creating whole page again. We store the part that dont change and apply functions that is changeable!
Similar
New technique to win olimpics
At the 1968 Olympics, Dick Fosbury took the athletics world by surprise with an unusual high-jump technique.
Printing mysql_error
This is a code snipped to print mysql error.
If there is no error mysql_error returns null, thus if evaluates false and there is no output.
multiple ON DUPLICATE KEY UPDATE
Here is an example of how to update multiple columns using values supplied in the INSERT statement. This assumes that column 'a' is the unique key.
multiple ON DUPLICATE KEY UPDATE
Here is an example of how to update multiple columns using values supplied in the INSERT statement. This assumes that column 'a' is the unique key.
php unlink recursive
The shortest recursive delete possible.
<?php
/**
* Delete a file or recursively delete a directory
*
* @param string $str Path to file or directory
*/

