PHP Tutorials (Else...IF)

The if/else statement

Has any ever said to you “if you work hard, then you will succeed in whatever you do”? And then what happens when you don’t work hard?, Well, you will fail it’s as simple as that. This is an example of an if/else statement.

  • If you work hard then you shall achieve whatever it was that you had set out to do.
  • Else, if you don’t work hard, then you will fail and shall not be rewarded for your lack of effort.
How does this translate into something that is useful for the php developers? Well think about this for instance:

Someone comes to your website and you want to ask this particular visitor if this is their first trip to your website. With an if statement this is easy enough to do. Simply have a statement to check off, “are you visiting this webpage for the first time.” If the condition statement is true then have them directed to the “insert your name” page, else let them view the website as they normally would because you have already asked them for their name in the past.


( Read more )

PHP Tutorials / Lessons

Php tutorials / Learning Php

If you want to learn the premiere functions of a php, simple follow this short tutorial and everything should be clear. The prime goal of this tutorial is to teach you the reader the basics so that you can
• Customize the scripts you download, so that they fit your needs
• Begin to understand the workings of php, so that you can design your own model of the php projects
• Give you a base of php, so that your are deemed more valuable with your future employers

First you need to know what php stands for which is translated to (php hypertext preprocessor)

What is PHP?

It’s an html embedded scripting language mainly designed for producing web pages, created by Rasmus Lerdorf in 1995. The purpose of the language is to allow web developers to write web pages quickly with. In this PHP lessons you will see it.
This might be a good definition. Although it does contain a lot of computer talk, instead of these terms, just think of php as a powerful behind the scenes scripting tool that your web visitors won’t ever see.
When people visit your php webpage, your web server processes the code. It then sees what it needs to show such as content text and pictures and hides the computer language stuff such as the math calculations and file operation, then translates this into html style. Once the translation is finished it then sends the webpage to your visitor’s web browser.


( Read more )