Tagged: php Toggle Comment Threads | Keyboard Shortcuts

  • Joe 23:57 on November 10, 2009 Permalink
    Tags: , codeigniter, framework, pear, php, symfony, zend   

    Choice of PHP Frameworks 

    PHP

    Image via Wikipedia

    As of today there is a Tweet Poll running with the question: Which PHP opensource framework do you mostly use?
    An interesting question because the market of PHP frameworks appears pretty fragmented after 750+ votes are cast. Leading is Zend Framework (does this qualify as Open Source?), followed by Symfony, Cake PHP, CodeIgniter, all around 10%. There are also a few stray ones: I don’t consider PEAR a framework and the choice “my own” can be disputed as well.

    For now there is no clear winner, something I already had that gut feeling about. Wonder where this is going to stabilize (and of course, how representative the twitter votes are anyway). See for yourself, the embedded graph below should stay up to date and you may cast your vote if you ike.

    Reblog this post [with Zemanta]
     
  • Joe 16:14 on February 24, 2009 Permalink
    Tags: Atom, bug, php, RSS,   

    Fix for error in WordPress rss feed module 

    WordPress Pumpkin

    Image by Eric M Martin via Flickr

    Using WordPress 2.7.1, there is a problem with the Atom feed export.

    In the apache error log are many occurrences of these two lines:

    Bad arguments. in /var/www/.../wp-includes/rss.php on line 175,
    The first argument, 'map_attrs', should be either NULL or a valid callback

    The problem appears to be a simple coding error: the callback function should be called as array reference, array(object, user_func).

    This has been reported as issue #9225, read on if you want to fix it for yourself right away…

    (More …)

     
  • Joe 12:19 on February 26, 2008 Permalink
    Tags: , finderQuery, , Nigel McNie, pagination, patch, php   

    Using pagination with CakePHP’s finderQuery SQL 

    Cakephp 1.2

    Update February 2009: this article is now about a year old and deals with an early beta versions of CakePHP 1.2. In the mean time, CakePHP 1.2 has been released with many improvements and great documentation. Please don’t use this patch, use this instead. I’ll leave the article below for reference.

    Cakephp lets you define various kinds of associations between models. The principle is really simple, just define arrays like $hasMany in your main model, where associations with other models are defined.

    For most purposes this does the trick, most associations are made by convention, but you can override these as well for e.g. database (foreign-) keys.

    From there on, you can use all cake built-in functionality to retrieve model data. One such feature is auto pagination, where the page size is set through the value of the limit field in the model’s definition.

    If you’re crafting something really complex, you can define your own SQL query in the finderQuery field. This is very nice, but the trade-of is that the other fields are ignored in the query. And if fields limit and offset are ignored, you no longer get auto pagination.

    The patch below fixes this for the current development tree of CakePHP 1.2 (revision 6461).
    (More …)

     
  • Joe 08:38 on May 8, 2007 Permalink
    Tags: Adding Fleck;, Alex King, cluttering;, gif, php,   

    Adding Fleck to ShareThis plugin 

    Share This iconYou may have noticed that I just added one of those immensely popular social bookmark sharing plugins to this blog. It is called ShareThis, developed by Alex King. I especially love the stylish, RDF-like Share This icon.

    I felt the ShareThis functionality overlaps the Fleck plugin for a great deal, so instead of having both of them cluttering every blog post, I just added Fleck to the ShareThis set.
    (More …)

     
    • Henri van den Hoof 16:06 on May 18, 2007 Permalink

      Ziet er goed uit. Ik heb zelf een plugin geschreven en daar ook Fleck in meegenomen maar vind deze Share This ook wel erg geslaagd. Misschien eens kijken of ik ’em ook kan gebruiken en customizen 🙂

  • Joe 23:03 on April 9, 2007 Permalink
    Tags: , php   

    Microsummary plugin goes commercial? 

    Well, not.
    But the other day I got a Google Alert, which learned me that the Microsummary Plugin made it into a commercial WordPress bundle.

    I’m surprised that this business exists, because you will still have to upload and manage the whole shebang onto a PHP and MySQL enabled hosting account. And those of us who are able to do so, are surely capable of installing WordPress. Maybe the added value is in the selection of bundled plugins, I don’t know.

    Anyway, there’s not much of documentation (e.g. it’s not clear if all 100+ bundled plugins are enabled by default). Just noticed the plugin is part of their list.

    And their fair warning to their customers:

    […] For instance, many core WordPress files got changed in the course of the new WordPress release. The same can be said about all the bundled enhancements.

    This has one big, important consequence: you must upgrade carefully. Simply uploading the new files and replacing the old ones won’t cut it. You need to remove all old files before uploading the new ones; that will help you avoid lingering stale/old files, which could cause WordPress to malfunction. Oh, and don’t forget to back up any files you’ve changed.

    Hmm…

     
    • Rudd-O 03:44 on April 10, 2007 Permalink

      Hello, and thanks for noting Turbocharged in your blog. I’m the lead engineer and owner of the (admittedly still small) business. I want to let you in on a little secret: since one of the big hurdles is usually installation, besides supporting it, we’re buidling a remote WordPress/Turbocharged installer for customers. Once it’s done, feel free to ask for an account so you can test it.

  • Joe 00:34 on April 3, 2007 Permalink
    Tags: php, web developers   

    Upcoming: CSS Naked Day 

    CSS Naked DayAnnouncement: April 5th will be the second CSS Naked Day.

    Just like last year, a lot of bloggers and web developers will have fun on this day by disabling the CSS for their sites and see what the raw content looks like.

    I just installed a plugin for WordPress which does CSS switching for me. Well, it did not quite work with the current 2.1x release of WordPress, so I made a slight modification.
    (More …)

     
    • Paul Enderson 18:22 on April 3, 2007 Permalink

      Thanks! I’ve got it installed, primed and ready for the 5th!

      Paul @ GadgetBloke.com

    • Paul Enderson 01:39 on April 5, 2007 Permalink

      Your plugin failed I’m afraid. I had it installed, seen by WP, with my layout conforming to Guff’s original recommendations.

      Is it possible that it was geared up to something other than 12:01 GMT?

      Thanks for the effort anyway. I just had to strip of manually! ;¬)

      Paul @ GadgetBloke.com

    • Auke Visman 16:45 on April 5, 2007 Permalink

      It’s a shame I just found out that today is the ‘css naked day’. I’ve used the plug-in in my WP 2.1.3 and it works!
      So I’m ready for next year and I hope to get comments on it as well.
      Thanx!

    • Joe 19:36 on April 5, 2007 Permalink

      @Paul: the plugin *should* take into account your local time zone. However, you need to have specified what the time zone offset is in the WordPress settings for that to work. Go to Options in the admin interface, look under Date and Time and specify the value for “Times in the weblog should differ by: xx”.

      I did not test this, though, as for me the time offset is very limited (ony two hours during daylight savings time).

c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel

Twitter links powered by Tweet This v1.8.3, a WordPress plugin for Twitter.