Archive for the 'Information' Category

Tips for Php

Tuesday, November 25th, 2008

Image Source: filemaker.com

If you are new to programming, chances are you will be more likely intimidated by PHP. PHP is the newest scripting language that is gaining popularity across the globe. This is simply because it provides a very basic principle in programming. No complicated stuff that will get you lost along the way. In relation to this, your fear of PHP is due to the fact you might have a limited understanding on how it works. Because once you get to know the important details, you should have no problem programming your stuff in no time. The most important thing you should know before you come to like PHP is an extensive understanding of HTML. This is primarily because PHP and HTML wil supplement each other in your programming.

Getting Your Php Certification

Monday, September 29th, 2008


Image Source:static.zend.com

Want to become a PHP programmer? PHP Certification is a type of exam in which you are required to pass a single test containing about 70 multiple choice questions. It was developed by the creator of PHP himself. If you pass this exam, you will be qualified to the next level which they call
Zend Certificate Engineer or ZCE. Currently, the medium for learning is PHP5. Gather study materials that are already based on PHP5.

What is all this for? You might ask. Basically, its sort of an online degree or certificate. The most important concept of this program is professional recognition. You can then use this to pursue your PHP programming career.

Looping Statement At PHP

Sunday, August 10th, 2008


Image Source: www.ariel.web.id
Looping statements, like Do-While looping statements, While looping statements, and For looping statements, makes programming very easy, even at making PHPs. But did you know that there is something that looping statements can’t loop? That’s right! There is something. Looping statements can’t loop If-Else statements. That’s because when the looping statement starts, it goes through the If-Else statement, and then, whatever the statement the If-Else statement supplies, it will be the new statement the looping statement loops, and the If-Else statement will be left aside. I’ve been creating PHPs in our school and I tell you, it’s very frustrating that your looping statements are not looping the whole statements you put inside it. Thus, your website will not work properly. The only solution that I find is that you have to use Switch statements. Switch statements are like If-Else statements, but the Switch statements are more specific. Try it! It works, even at other programming language

Session Variables

Friday, March 14th, 2008

f1.jpgSession variables are similar to cookies. They are employed to store information for a precise period of time. When the client makes any demand, the data stored in the session variable can be accessed by PHP any number of times awaiting  the session has ended. Variables can be used to pass information from one page to another without using a query string, since it is easy to maintain and retrieve.

Cookies?

Saturday, March 8th, 2008

f2.jpgAt the present time, most of the websites use cookies to accumulate  small amounts of information. Websites can read the values from the cookies and use the information as desired. The browser is competent of maintaining or  tracking  of the websites and their corresponding cookies and is capable of reading the information from relevant cookies. Cookies are links to some personal data and allowing to remain “logged on”.

Learning HTML the Easy Way

Tuesday, February 26th, 2008

Learning HTML or Hypertext Markup Language does not require any professional IT experience. This computer application is as simple and easy as it may seem to be. Performing Hypertext in the Word document is as simple as linking a keyword to direct a reader into a specific link. These said links can either be found on the same or other pages with the link that carry on a much broader explanation and variety of other web links of the same topic. This basic HTML Tutorial would best describe common HTML tags needed in learning the fundamentals as well as advance HTML.

Bit Toggle Programming Code Tips

Monday, February 25th, 2008

Toggling a number between 0 and 1 can be a useful tool for any programmers in running a loop and do an irregular action. This alternating format best applies to a two-player game where the first one player goes first upon going through the loop with same rules apply to the second player and the process goes on. However, if you are programming and customizing a high speed game then there should be a one line of code. For example when it is subtracted from one you will get zero and if the answer is one it means it is subtracted from one.

Date Validation Tutorial

Thursday, January 31st, 2008

Date Validation in PHP

This tutorial will show how to Validate Date fields using PHP code in ‘dd/mm/yyyy’ Format. It is a good practice to validate the date value when it is obtained using forms through user input.

PHP CODE:

//Check whether the submission is made
if(!isset($_POST["hidSubmit"])){
//Declarate the necessary variables
$strdate="";
$strdate1="";
DisplayForm();
}
else{
$strdate=$_POST["txtdate"];
//Check the length of the entered Date value
if((strlen($strdate)<10)OR(strlen($strdate)>10)){
echo(”Enter the date in ‘dd/mm/yyyy’ format”);
}
else{
//The entered value is checked for proper Date format
if((substr_count($strdate,”/”))<>2){
echo(”Enter the date in ‘dd/mm/yyyy’ format”);
}
else{
$pos=strpos($strdate,”/”);
$date=substr($strdate,0,($pos));
$result=ereg(”^[0-9]+$”,$date,$trashed);
if(!($result)){echo “Enter a Valid Date”;}
else{
if(($date<=0)OR($date>31)){echo “Enter a Valid Date”;}
}
$month=substr($strdate,($pos+1),($pos));
if(($month<=0)OR($month>12)){echo “Enter a Valid Month”;}
else{
$result=ereg(”^[0-9]+$”,$month,$trashed);
if(!($result)){echo “Enter a Valid Month”;}
}
$year=substr($strdate,($pos+4),strlen($strdate));
$result=ereg(”^[0-9]+$”,$year,$trashed);
if(!($result)){echo “Enter a Valid year”;}
else{
if(($year<1900)OR($year>2200)){echo “Enter a year between 1900-2200″;}
}
}
}
DisplayForm();
}
//User-defined Function to display the form in case of Error
function DisplayForm(){
global $strdate;

Explanation
*Expression ^[0-9]+$
^ :-Indicates the beginning of the string
[0-9]+ :- indicates that the string begins with a number between (0-9) and is followed by numbers.
$ :- Indicates the end of the String

Basic PHP Syntax

Monday, January 28th, 2008

A PHP scripting block usually starts with . The best thing about PHP scripting block is that you can place it anywhere in the document. placed anywhere in the document.

On servers with shorthand support enabled you can start a scripting block with .

It is recommend that you use the standard form

< html >
< body >

< ? php
echo "Hello World";
? >

< /body >
< /html >< /em >

Every line in PHP ends with a semi-colon. The two basic output text in PHP are: Echo and Print.


Bad Behavior has blocked 238 access attempts in the last 7 days.