PHP - Check if Production or Sandbox

When developing a site, it’s usually best to work on it on a local sandbox (development) server. This will allow you to quickly test the site without having to upload the files. Also, when working on a sandbox server, you have full control of the software that is running. This lets you test the code on various platforms, servers, PHP versions, and all sorts of other stuff. But there is a down side to working on a local server, it’s that when you are finished you usually have to modify the configuration file and maybe a few other files so that it will work on the production server.

Start PHP Server using Context Menu - Windows

There is a reason why computers now have full Graphic User Interfaces (GUI’s) and no longer only have shells and terminals. But for some software, you still need to open up a terminal or command prompt to start the software. Or do you? Today we are going to look at adding a Context Menu item inside of Windows 8.1, but it will work in other versions of windows such as XP, Vista, 7 and 8.

Website Contact Form without PHP

A few days ago I ran across an interesting question about a person who didn’t want to use PHP or didn’t have access to PHP and still wanted a contact form on their website. First off, if you have PHP and don’t mind using it, I suggest just using PHP for your contact forms. But the method I came up with uses the mailto: URI scheme that almost every computer and phone knows.

Custom Style RSS Feed

Give your RSS Feed a new look with CSS. If you have a website that has RSS feeds for comments, posts, updates or anything else you need to have it styled. Leaving your RSS Feed plain will make it blend in with all the other sites and even in some browsers make it difficult for users to read your sites RSS feed. Also giving your RSS feed a style that matches your site will show to your visitors that it’s part of the same company.

Prevent Search Engines from Caching Content

At one point or another you will need to force a website or a webpage to not be in a search engines cache or want to make sure it doesn’t get cached. I’m going to show you how to prevent Google and a few other search engines and caching services from caching your website. Please note that having a cached version of your site is often a good thing since if your website is under heavy load or no longer loads, users can still see your content.