Tutorial series – X/HTML Design Tips

Bismillaahir Rahmaanir Raheem

I’m going to start a new, easy-lifting tutorial series that I’ve been meaning to do for a while. It’s focus will be useful exploitation of the X/HTML standard for marking-up your pages in an elegant yet standards-compliant way. I will make an attempt to reference other excellent sources that exist throughout the webiverse wherever appropriate, but for the most part, a lot of these ideas have just come from my own exploration and experimentation with the specification.

Some of the things I will be covering in this tutorial series include (but are not limited to):

  • The usage of lesser-known but fully-supported X/HTML tags for common & useful purposes
  • Emphasis on a semantic presentation of content
  • Minimization of unnecessary markup
  • Strict adherence to both the spirit & the letter of the pertinent standards
  • Examples of how to exploit the synergy between pertinent standards (e.g., X/HTML, CSS, etc.)
  • How to avoid using deprecated tags, attributes, and techniques in favor of more sanctioned alternatives

Comments, questions, and suggestions related to the topics presented are always welcome, and I will do my best to answer them, but no promises are being made. Continue reading “Tutorial series – X/HTML Design Tips”

MySQL Server, Apache HTTPD, PHP, & Subversion source configuration & installation

I have my webserver (at the time of this writing, the one on which this blog is posted) configured rather nicely, however, as with everything that accumulates over time, it’s current state is a combination of quite a lot of trial-&-error sessions that would be really hard to duplicate the first time I tried to do so on another environment. Therefore, I’m going to try to log the configuration I use to get a system working as I like. This may or may not turn into a tutorial-type series, but for now, it’s just notes for myself. Continue reading “MySQL Server, Apache HTTPD, PHP, & Subversion source configuration & installation”

Implementing PHP Iterators – The Beginning

One of the new features that came with PHP 5 is the ability to implement Iterators. Implementing one of your objects as an iterator essentially allows you to treat it as a standard array. By default, without adding any additional code, you can enable iteration over a regular objects variable members. So, for example, if I had the following code:

(I’ve removed the plugin that I used to format PHP code here, so until I find out that works, I apologize for not showing my code examples…)
If I were to run a foreach() loop over this, I would get behavior that would correspond to an array with the elements of $bar1, $bar2, & $bar3. This is wonderful default functionality. However, you can go a step further if you want to implement more complex & complete behavior. I’m going to be experimenting on this kind of behavior with my DBObject class – namely, converting it to a DBArray object, and see how well that goes over. I will report on my successes & travails in followup posts.

(Boy I’m having a hard time to get WordPress to format code on this thing…probably need to get an extension to do it. Any suggestions?)

Now taking tutorial requests

One of the goals of HidayahTech is to share what little technical knowledge I have with my visitors in the form of easy-to-follow & comprehensive tutorials. So, if you’d like to request a tutorial, please leave a comment to this post with the nature of your request. I’ll start you off with some options:

  • PHP
  • MySQL
  • HTML
  • CSS
  • Object-Oriented Programming
  • XML
  • Standards-Compliant Design
  • 3-tier design (a.k.a., Model-View-Controller)
  • REST

My posting these topics above does not imply that I am in any way an expert in them, but they are concepts with which I am at least slightly familiar, and wouldn’t mind looking into more deeply to help share some knowledge. However, I do deal with most of those topics in one way another at work or in my own personal website design.

Your request need not be limited to the list above, and may even be a combination of any of the above, but you’ll have more of a guarantee of a decent tutorial written if it can be expressed by one or more of the above topics.

I’ll be lookin’ forward to hearing from you all!