Lateral Code
A Web Development Blog Focused on Code and Technology
Currently Browsing: Home » Posts tagged 'tutorial'
Posts Tagged ‘tutorial’
Automated Uptime Verification
By Patrick Lin on Tuesday, August 24th, 2010 | Tags: php, tutorial | 1 Comment »
If you have ever administered a website, you know that downtime is unavoidable. Creating a system to automatically check if your website is up can help deal with downtime and provide a better user experience. Doing so is quite simple if you have the following tools available:

- A web server other that that on which the website is hosted
- Cron (if you do not have this, you can use an online service)
- PHP with libcurl support
- PHP with mail support (optional)
Creating A Random String With PHP
By Karthik Viswanathan on Saturday, April 25th, 2009 | Tags: php, tutorial | 4 Comments »
There comes a time when you need to create a random String. It might be for a verification code, a complex password, or something you are developing. You might think that its a boring and manual process. Luckily, this is not true.

Below we present a simple way to create random Strings using PHP. All you need is one function with a few lines of code. Let’s begin…
Regular Expressions
By Karthik Viswanathan on Thursday, April 16th, 2009 | Tags: perl, tutorial | 11 Comments »
How many times have you had to dig through a long, confusing string for information? This has been a common problem for years. What’s the solution? Regular expressions.
What are regular expressions? Well..

Now that you’ve seen that… guess why so many people do NOT program in Perl?
To put it very simply, regular expressions are strings that search for patterns. Patterns can be a few letters or enormous strings with many wild cards. In this tutorial, I will outline some basics of regular expressions (also known as regexes).
Google Adsense With WordPress
By Karthik Viswanathan on Sunday, April 12th, 2009 | Tags: tutorial, wordpress | 4 Comments »
Throughout my website career, I’ve found google adsense to be a very effective method to earn income. Even though it may not be the best for every site, it certainly has an ingenious method of displaying ads.
Unfortunately, WordPress users may have a tough time implementing google adsense without a plugin. For those of you who love to do it yourself, here is a simple way to place adsense on your own WordPress blog.

Using Load Icons
By Karthik Viswanathan on Tuesday, April 7th, 2009 | Tags: javascript, tutorial | 5 Comments »
Imagine a situation in which you enter a new site. The content you are desperately searching for doesn’t seem to be loading. You don’t know whether something is actually loading, or if it is just not there. You finally decide to exit the page.
This situation can be very typical when websites generally need large files to be downloaded. In order to combat such a situation, a load icon may be used to signify that something is loading.
In this simple tutorial, I will take you through the usage of one of these icons in your own website.
![]()