Using The Date Command In PHP

Make your site look like you actually update it! In php create a script that receives the date current date!  So people might actually think you update it.  Well, only in some…

HTTP Authentications using PHP

The HTTP Authentication hooks in PHP are only available when it is running as an Apache module and is hence not available in the CGI version. In an Apache module…

How To Set A Cookie

What’s a Cookie you ask? Cookies are little pieces of text that are sent to a user’s Web browser. Cookies can help you create shopping carts, user communities, and personalized…

Improved Caching with PHP

Introduction In the last Code Gallery Spotlight, we examined a PHP class that performed very simple data caching. This time around we are going to explore the same topic, but…

Caching Variables with PHP

Introduction Whether you are retrieving information from a database or grabbing news headlines from another site, properly used caching can help reduce the run time of your PHP scripts and…

Displaying an RSS feed with PHP

Introduction RDF Site Summary documents, or RSS, are an easy way to syndicate content onto your web site. More and more web sites are offering RSS feeds of their content…

A Simple Web Search Engine

Every user expects a search engine on any Web site they visit. Unfortunately, search engines are extremely complex to develop. They require massive amounts of resources and time to implement….

Session Authentication

Web site authentication applies to most Web sites on the Internet. Implementation of authentication schemes however can vary significantly from one site to another. Why use session authentication? Let’s say…

Error Handling in PHP Part-I

Introduction If you’re a developer, I’m sure you’ve experienced an error message in PHP. In fact, you should be quite familiar with the standard error message format such as this one…

How to Fake the http Refferer

This is used in some scripts to check for security. You mustn’t use this as a security check, as it is very easily spoofed. See here for how to secure your perl…