Automating a WordPress Copyright Notice
Sunday, January 1st, 2012Automating the copyright notice on a web site with a dynamic date is easy to do with PHP. We do this on every site that we develop, including WordPress sites. (more…)
Automating the copyright notice on a web site with a dynamic date is easy to do with PHP. We do this on every site that we develop, including WordPress sites. (more…)
We recently picked up a client whose web designers stored hundreds of images on her web server. The client is not tech-savvy and wanted to find a way to view the images on her server. (more…)
This issue frequently arises when site owners want to convert legacy .htm or .html pages to run PHP, but they do not want to change the file name extensions due to the potential loss of rank positions when the URLs are changed. It is easy to convert HTML pages to run PHP if you know how and you can change those static pages to run dynamic PHP code. (more…)
If you run one or more WordPress blogs, you might be tempted to use some of the thousands of free WordPress themes available on the web. Be aware that some may contain malicious code or links embedded in encoded sections of PHP code that may be detrimental to your web site. (more…)
Many older sites written in PHP as well as many newer sites that evolved from older legacy code will find their sites broken when their servers are upgraded to PHP 5.3. That’s because many older PHP functions and INI directives are now formally deprecated (made obsolete) in version 5.3.
(more…)
Sometimes there is a need to display the list of files in the directory and allow a user to select a file name from the list. We run into this most often when a user must be able to select an image or a document to be downloaded or displayed after being selected. Here is a very simple PHP script that will display the content of a web site directory using an HTML select list.
(more…)
Sometimes you need to use a drop-down select box routine to allow users to select a date that you can easily save in a MySQL database. Here is one way to generate date boxes using PHP. The code also includes a JavaScript date validation function that prevent users from selecting an invalid date. The function also handles leap year situations.
(more…)
3D movies have recently seen a resurgence in the movie theater. Due to new 3D theater technologies, several 3D version of movies have hit the theaters and a few of those have made it to home theater formats in both standard DVD and Blu-ray.
(more…)
One of the first questions that comes up when someone starts using PHP and the very powerful MySQL database is: How do I page through the results of a query like I see with search results on many web sites? This is pretty easy to accomplish if you know how to use the MySQL LIMIT clause.
(more…)
It is common to add a drop-down select box that is populated with USA states or Canadian provinces to PHP applications. There are basically three ways to do this. You can hard-code all of the Select box selections into your application, you can add the states to a MySQL database manually, or you can use the handy code on this page to create a States table in MySQL in just a few seconds. (more…)