Website Automation
5-Line PHP Script to Rotate Content Daily
When you have content -- quote, ad, image, ... -- to show on rotation, a different one each day, consider using this 5-line PHP script.
Ajax Content From Other Domains
Ajax has a built-in restriction allowing it to retrieve content only from its own domain. In other words, the domain where the web page is loaded into the browser is the only domain Ajax can retrieve content from. This article shows you how to get around that restriction.
The browser provides information about the user's preferred language. I'll show you how to redirect visitors to your alternate language pages using the language information from the browser.
Always-current Year-selection Dropdown List
Year-selection dropdown lists can always be current. When the year changes, the options list changes accordingly.
Auto-Launch CGI Script with JavaScript Tag
Launch a CGI program when a page loads using a JavaScript tag.
Automatically Send Event-Triggered Email
automatically. Examples: A specific link is clicked on. The page is scrolled. The page is viewed for longer than a specific amount of time.
Automating DNS Change Propagation Check
When you change hosting providers or have other reason to change your domain's DNS, you'll want to test the website as soon as possible after the DNS has changed.
Central Prices File For Easy Site-wide Changes
Here is a way to manage product pricing from a central repository. Make a price change in one file and the price is automatically changed on all web pages using the system.
Clicking Links With JavaScript
A user's tap or mouse click is not always necessary to click a link. A click can be accomplished with JavaScript, too.
A countdown timer can be useful when the site visitor needs to know about the original location before the redirect.
CRON Scheduled Script Launches
There are two aspects of cron scheduling to know about: How to set up the schedule. How to launch the script
Daily Content for Many Websites
Daily content can be served to your web pages, any web pages, including WordPress pages and posts, from one central distribution point.
Email Notification When Perl CGI Script Is Used
Here is a quick edit for your Perl CGI scripts to make them send you an email every time they are run.
Email Notification When PHP Script Is Used
Link redirectors, form loaders, page load counters, image delivery scripts, pretty much any PHP script can be modified to send you an email when it is used.
End-of-Year Copyright Year Number Change
This article describes how to set up an automatic update of the year number in a copyright statement.
How to Redirect With Method POST
Redirect a browser with method POST if the data must be confidential.
IFRAME Tag Will Auto-Launch CGI Script
Launch a CGI program when a page loads with an IFRAME.
Image Tag Launches CGI Program
Launch a CGI program when a page loads using an IMG tag.
JavaScript can be used to schedule specific content within a web page for publishing during a period of time you specify. You tell the JavaScript when to begin publishing the content and when to end.
Launch PHP Script in Background
Launch a PHP script with your web page so the script can work in the background.
Live Update of Form Calculations
Form fields for total number of items are updated as soon as the the person changes a number. Live. Instant. Total price can also be calculated be live updated.
Making 'Method Get' Work As 'Method Post'
When this link is clicked, the form handling script will receive the information as method="post".
Non-Display Image Silently Causes CGI Program to Run
JavaScript can be used to load an image into memory on demand. The image load can cause a CGI program to run.
When you need to provide a temporary download link that can be used only once, the PHP script in this article can provide the means.
'OnLoad' Attribute Activates CGI Script
Launch a CGI program when a page loads using the "OnLoad" attribute.
There are gotchas for the unwary when trying to run a PHP script with cron.
Redirect 301 Versus Redirect 302
In essence, a redirect 301 is a permanent redirect and a redirect 302 is a temporary redirect. Pretty much cut and dried for some implementations. For others, not such a clear choice.
When we installed our new central Download Handler software, we wanted to direct download links from old download handlers to the new one. I'll show you how I did it.
Running a CGI Program On Page Load
Many different methods of launching a CGI program when a page loads.
PHP scripts generally can be accessed with a browser by typing the script's URL. When the page loads, the PHP script runs. When a PHP URL has to run every so often, the URL can be scheduled with cron. (Actually, it can be any http://... URL, doesn't have to be PHP.)
The Easiest Image Rotator Ever
If you've been reluctant to install an image rotator because it felt like it would be complicated, here is one that's easy to install and easy to use.
All information in WillMaster Library articles is presented AS-IS.
We only suggest and recommend what we believe is of value. As remuneration for the time and research involved to provide quality links, we generally use affiliate links when we can. Whenever we link to something not our own, you should assume they are affiliate links or that we benefit in some way.