Tag: Getting

Getting To Know PHP

Adsense Click Fraud Protection – Anti Click Bomb Script
Anti Click Bomb Script To Detect Fraudulent Clicks On Your Adsense Ads. Prevent Malicious Visitors From Click Bombing Your Ads By Banning Their Ip Address. Don’t Wait Until You’re Banned From Adsense. Act Now…
Adsense Click Fraud Protection – Anti Click Bomb Script

Article by Nick Hatton

Well first things first, PHP is a scripting language that is server side, by server side I mean the people viewing the web page containing the script doesn’t have to download anything to get it to work.

The main reason people use PHP is because their website are dynamic, the use of PHP script will allow the designer to create pages that can change on certain circumstances. PHP script can be use to do many things, add water marks to images on the fly, meaning you upload your image and the code will automatically add the water mark over the top of them without you needing to do anything. There is only one major thing that PHP can’t do, and that is real time processes meaning the page that the script is on needs to be load or reloaded to run the script.

In this article I will show you have to learn the very basics about PHP and how to get a script to work.

First of all you’ll need to make sure the web server that your webpage/script is on allows the use of PHP most does these days but they are still some out there that don’t. Once you know that your server supports PHP you can get to create the file.

In any type of webpage you’re going to need some of the basic HTML tags to ensure that the script we create is going to be visible on screen. So we will start with the html and body tags.

<html><body>//this is where your code is going to be!!</body></html>

These tags will allow you to display your script output, copy an paste these into your notepad or web page editor software.

Once you’ve done this you will want to save your page as a .php file e.g. yourfilename.php this will tell your web server that the web page contains PHP script that will need to be run when the file is accessed.

So now we have a very basic empty web page we are now going to fill it with some PHP code! We will start off with some VERY basic stuff. First we want to say hello to anyone that visits the web page so to do that we’ll add a simple bit of code that will display some text. When starting your PHP script you need to open the script almost in the same way as a normal HTML tag but you don’t close the tag until your script is finished e.g. <?php your code goes in here ?> .

So our code to say hello is:

<?phpecho “Hello, Welcome to my web page”;?>

You’ll notice that there is a semi colon after t the code, this is needed to tell the server that, that line of the script is ended, if the semi colon isn’t there the script will crash and the page will fail to load or will load incorrectly.

We want to make the people who view the page feel welcome so we will add a nice little form and get them to enter their name so when they view the page it says “Hello (views name), Welcome to my web page”. This can be done easily once we’ve added a form to the page, copy the code below for the form.

<?php if(empty($ _POST['submit'])) {?>

<form id=”form” name=”form” method=”post” action=”"><input name=”user” type=”text” value=”Enter name here” /><input name=”submit” type=”submit” value=”Submit” /></form>

<?php} // here instead of echoing the form out we close the script and then reopen it to finish of the if statment?>

This will allow the user to enter their name, once they have and they click submit the form will disappear. We now need to add some more code to display the text, so the end code should look like this.

<html><body>

<?php if(empty($ _POST['submit'])) {?><form id=”form” name=”form” method=”post” action=”"><input name=”user” type=”text” value=”Enter name here” /><input name=”submit” type=”submit” value=”Submit” /></form>

<?php// here instead of echoing the form out we close the script and then reopen it to finish of the if statement} else {$ name = $ _POST['user'];echo “Hello “.$ name.”, Welcome to my web page”;?>

</body></html>

It’s that simple, you can use this code in any web page that uses PHP script to display names or anything else they type into the text field on the form.

Advice provided by Nick Hatton of L1 Computers providing Liverpool PC repair and Liverpool laptop repair with a service you are sure to be pleased with.










Learn How To Install PHP/mySQL Scripts

Like it or not, prospects judge you by the quality of your website. Chances are your website lacks features and looks of a million dollar site.

As a result, you may be losing a lot of prospects.

Maybe you think an expensive website is out of reach or you have to settle for less…

Well, you thought wrong…

You see, with a few hours and the proper knowledge, a webmaster can create a site that would have cost ,000,000 a few years ago. Instead of taking months or year

List Price: $ 3.99

Price:


Getting HTML Right – Even Unbelievers Can Do It! Guaranteed!

Article by Mike Hayes

The purpose of this article is to convert the unbelievers because they are missing out, so read on.Are you someone who’d like to program their own webpage but think that HTML will be too difficult? Do you think that that sort of stuff is only for University Graduates? Well, you are wrong, incorrect, being silly! If you can read and write English and be reasonably organized then HTML is NOT a problem for you. I promise.Look you want a webpage to talk about your hobby, let’s say fishing, so you decide to do it and, with a pencil and piece of paper, you design…….

1. At the top I want my name in large red letterҀ. Immediately after that I want that great photo of me fishing in Nebraska3. Then a list of the places I’ve visited to fish in the last 2 years with the results, catches and weights4. Then a heading, something like – My Tackle5. A photo of my rods, etc6. A list of the equipment; makes, models, etc. 7. Another heading – My Secret Bait Formulas8. Then the recipes I use for bait – noting which has caught the most.9. To close up an invitation for other fisherfolk to get in touch to talk fishing and maybe get together followed by my email address.

The length of time it takes you to write it, is how long you need, anyone, needs to sketch out their page.And, once you’ve done some HTML work, got a bit of experience – and believe me not much time is needed – the fisherman’s page will take about as much time to program and test as it took to ‘design’ it! I guarantee it! Personally!

I’ve six articles going at the moment, Getting HTML Right is the main part of the titles. Look ‘em up and discover that you can do it, I guarantee it! Personally!

For much more information visit The HTML Book. Opens in a new page.

Mike Hayes was born in 쌕 in the UK. After school he served in the Royal Air Force as an Instrument Fitter travelling to Aden, Rhodesia, Kenya, Gibraltar, Malta, Scotland and Northern Ireland until he was demobbed in 1966.After that he was a pirate dj on Radio 270, one of the many pirate radio stations in British coastal waters, this led to a short DJ career in the discos of Berlin and Amsterdam where he landed in 1968 and has lived ever s










HTML5 Digital Classroom

A complete training package—full-color book and instructional DVD—teaches you HTML5HTML5 boasts extensive new features that allow you to create dynamic Web pages and present users with amazing multimedia experiences. This personal training course uses a full-color book plus video tutorials on a DVD to teach you how to take full advantage of the new Web standard for creating rich multimedia experiences. While learning at your own pace, you’ll discover how to approach site concept creation a

List Price: $ 39.99

Price: [wpramaprice asin="B005N8EYYW"]

Find More Html Book Products


  • Copyright © 1996-2010 Programming tutorials for beginners,. All rights reserved.
    iDream theme by Templates Next | Powered by WordPress