OK well recently whilst doing some work for someone on a classifieds site the man wanted a banner from Banner Bar to show every 5 adverts. But he wanted the banners to be shown in ascending order and only 1 at a time. After some playing around and a nights sleep i finally cracked it …
Read moreDuring the remake of the installation script for bannerbar i had to come up with a pre-test script and with a bit of searching i put together the below which may be helpful for you too.
Read moreRecently i was asked to create a script for someone to show the Page Creation and Modified Date of web pages and being as this was for a Linux server where there’s no function for the creation date that I’m aware of like this is for the modified date i had to create a little …
Read more<?php $file = ‘demo.jpeg’; echo filesize($file); ?> This function is for use on local files only and will not work on remote files but what you can do is download the file to a temporary folder and then get the size that way. Also note that file results are returned in bytes so would look …
Read moreUse this simple php snippet for finding out your current ip address.
Read moreThis simple PHP function will Automatically update your web pages with the current year which means you don’t have to waste time each year doing it manually and can get on with more important things! The only thing to remember is it takes the current year from the server where your site is hosted on …
Read moreAuto lock your login pages with this little script get the login details wrong 3 times and the page is locked out until reset by the administrator! Avoid password crackers and brute forcer’s as the only way to reset this is to delete the log file (a.txt). It is possible to modify this script to …
Read more