Creating your own WordPress shortcodes is a nifty way to build dynamic elements into your website without relying on 3rd party developers or plugins. This tutorial offers a beginner’s guide to creating your first WordPress plugin which will be referenced by a custom shortcode. In this example we’ll be creating a basic random quote generator […]
If you’re looking for a particular script for your website, checkout our Which script? forum for recommendations.
Create a .php page and paste in the following snippet: <?php $path = pathinfo($_SERVER[‘SCRIPT_FILENAME’]); echo $path[‘dirname’]; ?> Upload the page to your server to the folder you need the path for and view in your browser; the absolute path will be shown.
If you own a resource website with a links page you may want to keep track of the links people are visiting so you can adjust your content and the links you add to suit. This simple external link hit counter will be able to help. First, we need to create a database, and table […]
Although my original tutorial on image rotations still works, it’s major flaw is the dependency on the script creator to enter a list of images to rotate. While this is not a problem if you only want to rotate a few images, and don’t intend on adding to it after creation, it will become a […]
If your server supports PHP but not MySQL — or perhaps you don’t want to learn SQL syntax — you may be despairing of finding an effective storage solution? Don’t lose hope; you can store all sorts of content in plain text files as simple as pie. (Mmm, pie!) What’s a “CSV”? CSV stands for […]
If you’ve got more than one file – such as a script control panel – that you want protecting, my Secure Login Page is more hassle than is needed to get an adequate level of protection. Using a similiar no-database concept though, we can make use of sessions to help protect our files. Firstly, we […]