Hull Design Online

PHP Status Checker

View demo

Page 1 | Page 2 | Page 3 | Page 4

This tutorial will guide you through how to create an application which allows for a user to input a website and reveal whether it's their connection or whether the website is actually offline.

For more information on the used elements, click on their name.

Let's begin by declaring our PHP statements.

<?php

We now have the beginning of our PHP file. That's the first step done; now we need to move on to the error checking. This is done so that we can find out whether we should process the input data, or ask for it.

if(isset($_GET['url'])) {
    $url = $_GET['url'];
}

The above code runs an error check. Let's now go through this line by line.

if(isset($_GET['url'])) {

This is the isset function. The responsibility of this is to check whether the URL from the form is sent to the script.

The next line is setting the variable $url to the contents of the requested form input box.

The final line closes the IF statement.

Page 1 | Page 2 | Page 3 | Page 4

This tutorial is up to date as of 01 August 09. While you're here, why not check out more tutorials? You could also subscribe to our RSS Feed, or even check out our Twitter - follow us for the latest updates. For video tutorials, subscribe to our YouTube channel. Feel free to check out our blog for more updates.

 

 

Hull Design Online YouTube Channel Hull Design Online RSS

Bookmark and Share

Latest

Smoke Scene Design
Modern Bokeh Effect Realistic Snow Photoshop Layout
Create Newspaper Headlines Halloween Poster - Part 2 of 2 Halloween Poster - Part 1 of 2
Halloween Text Time Greeting Sticky Tape
Business Card Design Draw Lined Paper Amazing 3D Text
Stunning Typography Create Realistic Reflections Widescreen Border
Indented Text Effect Advanced Shadows Text Styling Tutorial
Website Status Checker Load Time Optimise Pages
Shorthand CSS Optimise Your Windows System Manage Your Passwords Safely and Securely