CategoryPHP

WordPress’s query_posts() function

The growth of WordPress has been overwhelming, and now almost everyone is blogging using WP as their platform of choice, or writing on WordPress.com. The upsurge in usage and interest has spawned the development of various themes and plugins, allowing for use of WP in an entirely different form.

The query_posts() function is one you’re very likely to encounter when heavily playing with the application’s themes and pages. This function is essential in your arsenal in customizing your WP install and making it behave just the way you want it to.

10 PHP frameworks

This quick overview of ten of the more popular PHP development frameworks should help you in choosing the right one for your next project, based on your requirements. With the emergence of new methodologies and techniques, PHP frameworks continue to grow in number and complexity. This list can narrow down your choices to a lesser number, allowing you to evaluate your candidates more effectively.

Honestly though, I’m not a fan of frameworks for every type of development. There are PHP applications better done in a hack-and-slash way, especially those of the single–page, throwaway type. For small–scale apps, utilizing templating and database abstraction does the job, more often than not. Coupled with your favorite PHP classes and code libraries, development can be much faster and easier with careful planning, and application of simple “getting real” concepts popularized by 37signals.

A few good libraries

AJAX libraries.

I’ve been looking at several AJAX libraries these past few days for use with iPAP and several other planned projects. Going through AJAX Matters’s list leads us to many projects and options, and finding the right one for a specific need can be a cumbersome task. I’m providing some insights for the ones I find good enough.

  1. XAJAX is PHP–based and generates the Javascript programatically. You need to designate the action executed like replacing or appending content, but there is minimal need for tinkering with Javascript at all. Unfortunately, modifying or altering the generated client–side code is not as straightforward as other libraries. Another plus is that the PHP functions and custom functions you need can be in the same page you’re displaying to the user, so all you need to do is include() the xajax class file. XAJAX is good for PHP developers seeking to add some AJAX functionality to their applications, but those with a healthier Javascript/DOM acumen would find the next two libraries friendlier.
  2. advAJAX recently made the digg frontpage and proves to be simple yet easy to customise. If you’re comfortable coding Javascript, you can mix and match advAJAX with other presentational libraries and you’d have your very own toolset for your application.
  3. SACK is last on this list, but definitely not on functionality. In fact, it is good enough that an earlier version is used in WordPress 2.0 for all its AJAXy goodness. Just like advAJAX, you can customize your Javascript to perfection. The difference is in the syntax for setting parameters and calling functions, and boils down to personal preference.

To summarize my observations, XAJAX is best for those familiar with PHP who’d rather not deal with too much Javascript. advAJAX and SACK are better options for Javascript hackers who need the customization possibilities.

AJAX Classes

AJAX is one of the primary ingredients for almost all Web 2.0 applications. This allows better interaction and feedback between the application and the user, allowing for an enhanced usability and user experience.

These AJAX PHP classes over at PHP Classes will surely help in providing the functionality for your web applications.

© 2016 builder2

Theme by Anders NorenUp ↑

Follow

Get every new post delivered to your Inbox

Join other followers: