PHP Date QuickList

First we need to breifly go over how the date function works. It is fairly straightforward:
string date ( string format [, int timestamp] )
You simply pass a string containing the date format, and a timestamp if you don’t want to use the current time. Something to note: Any character that isn’t recognized by the date [...]

Comments Off :: Website Development :: Permalink

Working at Panera

I am working at Panera right now. I made some coffee at home, it came out bad. Jon IMed me and I asked him if he wanted to go to Panera. So we did, and are here now. I got a coffee and it tasted bad too. So I filled my coffee cup with soda. [...]

Comments Off :: Website Development :: Permalink

PHP Multi-Page MySQL Results

If you use any search engine, they will all limit the number of results per page. Some searches can return millions of pages! Now what about your site? Do you have any pages that return more than 30 items? You can easily break that down into 10 items per page.

In this example, I will show [...]

Comments Off :: Website Development :: Permalink

CSS Classes

CSS
CSS stands for Cascading Style Sheets. It is used to bring style to websites. Things you can do with style sheets are but not limited to:
Change the scrollbar’s properties.
Work with any html tag in CSS.
and the list goes on.
In this article however, we are going to go over how to make pseduo classes in CSS.
Example [...]

Comments Off :: Website Development :: Permalink

HTTP authentication with PHP

In my last article I showed you how to Password Protect with htaccess and htpasswd, and how to use PHP to add to your htpasswd file. In this article, I’ll show you how to use HTTP authentication, just like using htaccess, but this time you’ll be able to verify the login against a database.

So why [...]

Comments Off :: Website Development :: Permalink

PHP Password Protection

Learning how to use Password Protection with htaccess and htpasswd files can make it very easy to protect a large website, without modifying anything or playing with sessions. In this tutorial I’ll show you just how to do that, and how to easily add users to the htpasswd file.
htaccess
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/username/hiddenfiles/.htpasswd
AuthGroupFile /dev/null
require valid-user
This [...]

Comments Off :: Website Development :: Permalink