Displaying articles 61 to 71 of 71

Implementing An N-Level Nested Tree In PHP And PostgreSQL Appendix

Since creating the second part of the Nested Tree series, I've done further work on the nested tree class. This appendix article is not officially part of the "3 part series", but it is an addon article which may be continually updated with new ideas and snippets to include in the Nested Tree class. The reason these have been kept separate is because they are not core to the concept of implementing nested trees in your web site.

Implementing An N-Level Nested Tree In PHP And PostgreSQL, Part 2

This series of articles is about implementing a nested tree using PHP and PostgreSQL. This article - part 2 - covers the implementation of managing nested trees in PHP. The data we learned how to store in SQL in part 1 must be extracted somehow. In this article, we will create a class used to extract data from the tree and to rebuild the tree. Each portion of the class will be developed separately, then all combined into a single class.

Advanced Documentation With Reflection In PHP 5

In PHP there are many ways to document code. In PHP the most common method is phpdoc and it is widely used all over. However, with the introduction of Reflection in PHP 5, you no longer need source code scanning tools to generate documentation. This article covers one way to extend and modify phpdoc comment syntax and access the data via Reflection and convert it to machine readable XML.

Advanced OOP With SPL In PHP 5

This article covers the extensions to PHP5's OOP including SPL (Standard PHP Library) and how to use them in a real world setting. For the purposes of this article it will be assumed that you already know about classes, interfaces, static members, and references. You should also understand some basic design patterns like Factory. These concepts will be illustrated through the use of a conceptual database layer.

Debugging Your Web Application

This article covers the implementation of a debugging system in your web site or web application. The system is designed to allow debugging of different aspects of your system at any particular time (e.g. SQL queries, filesystem operations, etc..) and writing the debug messages to a log file.

Protecting Content And Handling Robots

This article discusses ways for site owners to protect their content, handle search robots, prevent unauthorized user activity and to save bandwidth.

Implementing A Breadcrumbs System On Your Site

This article briefly covers implementing a breadcrumbs / trail system. An example of this in action is on this web site (see above where it says "You are here".

Implementing An N-Level Nested Tree In PHP And PostgreSQL, Part 1

This series of articles is about implementing a nested tree using PHP and PostgreSQL. The theory and code in these articles also applies to MySQL, not just PostgreSQL. An N-Level nested tree is a way to represent hierarchical data, such as a list of directories and files in your operating system, or the listings in a directory such as the Open Directory Project. There can be any number of levels and any number of elements within each level. The goal is to be able lookup data in the tree as quickly as possible with minimal strain on resources. We will implementing this using the nested tree model by Joe Celko.

Migrating From MySQL To PostgreSQL In PHP

This article is aimed primarily at MySQL users, showing them how to start with the PostgreSQL database management system. The article covers just a small number of areas, directly related to use in PHP - it barely even touches on most of PostgreSQL's other features.

CSS Tips

Here is a list of CSS-related tips. They are basic things you can do within your CSS file and/or HTML files to make your pages faster to download; faster to render; work in more browser; be accessible; be maintainable.

Creating XHTML Compliant Code

This article contains a few simple pointers to make sure all your HTML code is XHTML compliant. This will be an evolving document as there will periodically be new ideas and methods of doing things. It's amazing that despite how simple and fundamental all of these things are, very few people coding HTML get them right.