I don’t regularly create cronjobs; however when I do I can never remember the proper crontab syntax. Each time I want to edit my crontab I have to fire up my codebox for reference. For some reason its the minutes and hours that screw me every time. The trusty old reference below just doesn’t do [...]
Archive | PHP RSS feed for this section
From the land of “why the hell didn’t I think of this sooner”… The following is a drop dead simple method to handling all HTTP error (403, 404, 500 etc.) pages with one single PHP file and a few tweaks to your htaccess. .htaccess Code The first step is to create/modify your .htaccess file. The [...]
Every year some lonely web folks are wasting time updating the copyright dates on their various websites footers. Since we have jumped head first into 2012 lets start the year off right. The following will show you how to use PHP to automatically update your notice. Display Current Year Add Your Copyright Text I’m sure [...]
The below example will help you with finding or setting a date to and/or fro using business days only. I needed this for a project I was working on and thought I would share. Enjoy
Here is a super simple way serve up a cached version of your HTML. Modified from WESBOS
I’ve been following a new website via Twitter. PHP Snippets (www.phpsnippets.info) posts frequent useful PHP code samples. PHP Snippets is maintained by Jean-Baptiste Jung, author of Cats Who Code and WPRecipes. PHP Snippets is a great place to find clean code samples to get you started on your project. I hope Jean keeps up the [...]
I love Dropbox; it’s simply amazing and über helpful. Appstorm has published several posts with some really useful Dropbox tips. Below are the five tips and ticks I can’t live without. Tips & Tricks If you’re not familiar with Dropbox, let me first start out by saying you’ve been missing out. There is a large [...]
Happy 15th Birthday to the awesome PHP. Back in 1995, Rasmus Lerdorf issued the first public release of PHP. What is PHP? PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. Now you know! PHP Website – http://php.net Related Posts
In order to make sure that your website is always available to the public, you have to monitor it. In this tutorial, I’ll show you how you can easily create a monitoring script that will check your website availability and send an email or sms alert to you if it isn’t. via How to easily [...]
A PHP function to protect the E-mail address you publish on your website against bots or spiders that index or harvest E-mail addresses for sending you spam. It uses a substitution cipher with a different key for every page load. via PHP hide_email().
Thanks for visiting; hopefully you will find something interesting here. Feel free to comment or contact me with any thoughts you have regarding my website. Sonas ort!
Looking for something?
Follow @SullysRants on Twitter
Days Until Retirement
- The good life starts:
in 19 years, 10 months, 30 days