Sep 032012
 

Learning PHP, MySQL, JavaScript, and CSS, 2nd Edition

Just released by O’Reilly:

PHP and MySQL remain the top combination for developing modern websites with dynamic data and user interaction. Once you add JavaScript, you have Ajax — the framework behind many popular Internet destinations. This concise, understandable guide teaches non-programmers and web designers how to use these powerful tools quickly and easily. The book also introduces Apache, CSS, and XHTML.

Aug 042011
 

After installing the Drupal core, the Reports section in the administrator’s interface warns us that APC is installed but not enabled. This Alternative PHP Cache can easily be deployed as part of Drupal, optimizing the execution of PHP code and the serving of data.

Continue reading »

Aug 032011
 

Almost a year ago, we got very excited after looking into Drupal. Back then, version 7 of this Content Management Framework (CMF) was not yet available.

Today it is. And although not all modules are available for the new core, version 7 looks even better than its predecessor.

In this article we describe the complete installation of a multi-site Drupal system. Continue reading »

Apr 282011
 

Last time, we created buttons for bookmarking, permalinking, mail forwarding, and printing. However, these days, your website can not be complete without some sort of social media integration. In this article we add page-specific buttons for LinkedIn, Twitter, and Facebook to our site. Next time, we round up by setting up three general social media buttons. Continue reading »

Apr 242011
 

After we successfully installed the OpenX ad management system, we can now integrate this tool into our website. That allows us to set up accounts and management interfaces for individual advertisers, or to display advertisements from the OpenX Market. Continue reading »

Apr 062011
 

Often, a web page contains not only a navigational menu (on the left or at the top of the page), but also a menu offering page-oriented (local) functions. You are likely to find buttons for bookmarking, permalinking, mailing, and printing at the right of the web page. In this article we describe the code to set up these four functions for your site. Continue reading »

Feb 212011
 

When it comes to HTML encoding, URL encoding, and internationalization (i18n for short), there appears to be a lot of confusion among PHP programmers. Since most web browsers are quite forgiving, a lot of programming errors are never discovered. Worse: programmers write huge amounts of code without ever realizing their output is not compliant with the W3C standards.

In this article we explain the differences between ordinary (UTF-8/ASCII) text, HTML encoded text, and URL encoded strings. To generate the right type of output at the right place, we deploy the PHP functions urlencode and htmlentities. Furthermore, we show how to combine these with the gettext function _(). Continue reading »