Featured Post Today
print this page
Latest Post

Single Quote Concept in PHP : 3rd Day Lecture


Single ' ' Quote Concept in PHP

Sample 1 : Single Quote As Double Quote

My Name is Samee. And I am here to learn PHP.

My Name is Samee and my friends call me Sam.

Real Single Quotes Effact
My age is {$age}
My Short Name Is $name



   <html>  
     <head>  
       <title>Single Quote ' ' Concept in PHP : 3rd Day Lecture</title>  
     </head>  
     <body>  
       <h1 align="center">Single Quote Concept in PHP</h1>  
       <!--This Topis is also related to Display of Variables in PHP : 3rd Lecture of PHP -->  
            <h2 align="left">Sample 1 : Single Qoute As Double Qoute</h2>  
              <?php echo 'My Name is Samee. '.'And I am here to learn PHP. <br />' ?>  
           <?php echo '<p>My Name is Samee and my friends call me <b>Sam</b>. </p>' #you can use html also in single quote ?>  
           <?php echo '<b>Real Single Quotes Effact</b> <br />'?>  
                          <?php  
                          $age=22;  
                          echo 'My age is {$age} <br />' //As you can see in output that single quote does not support to variables.  
                          ?>  
           <?php  
                          $name = "Samee Ullah Feroz";  
                          echo 'My Short Name Is $name' //As you can see in output that single quote does not support to variables also without curly brackets.  
                          ?>  
     </body>  
   </html>  


0 comments

Display of Variable in PHP : 3rd Day Lecture


Display of Variables In PHP

Display of Variables in PHP
$Name, $_class, $ali

Sample 1 : Common way of Variable

The Answer is = 150

Sample 2 : Variable within double qoutes with curly brackets

My age is 22.

Sample 3 : Variable within double quotes without curly brackets

My age is round about 22.



   <html>  
     <head>  
       <title>Variable Display in PHP : 3rd Day Lecture</title>  
     </head>  
     <body>  
       <h1 align="center">Display of Variables in PHP<br />
            $Name, $_class, $ali</h1>  
            <h2 align="left">Sample 1 : Common way of Variable</h2>  
              <?php $a = 100;  
                                    $b = 50;  
                                    $c = $a + $b;  
                                    echo "The Answer is = ".$c ?>  
         <h2 align="left">Sample 2 : Variable within double qoutes with curly brackets</h2>  
              <?php $age = 22;  
                                    echo "My age is {$age}." #Variable within quotes is defined between curly brackets  
                          ?>  
         <h2 align="left">Sample 3 : Variable within double quotes without curly brackets</h2>  
              <?php $age=22;  
                     echo "My age is round about $age." //Variable within quotes is defined without curly brackets  
                          ?>  
     </body>  
   </html>  


0 comments

Echo And Print Keywords Difference in PHP : 3rd Day Lecture


echo And print in php

Echo Keyword Functionality in PHP

Sample 1 : Echo Usage

1 : Echo is used to print data.
2 : As I had described in my Old Echo Functionality post.
3 : Echo is used to print multiple stings at a time. Like
4 : You Know what is my name!.....My name is +Samee Ullah Feroz 

Print Keyword Functionality in PHP

Sample 2 : Print Usage

1 : Print is used to print date same as echo does. But....
2 : Print keyword is used to print a single sting at a time.
3 : You Know what is my name!.....

[Note] : As you can see in 3rd statement of Print Keyword Functionality. 2nd Half Part is not printed. as Echo keyword did.



   <html>  
     <head>  
       <title>Echo And Print Keywords Differance in PHP : 3rd Day Lecture : Samee</title>  
     </head>  
     <body>  
       <h1 align="center">Echo Keyword Functionality in PHP</h1>  
         <h2 align="left">Sample 1 : Echo Usage</h2>  
           <?php echo "1 : Echo is used to print data. <br />"?>  
           <?php echo "2 : As I had described in my Old Echo Functionality post. <br />" ?>  
           <?php echo "3 : Echo is used to print multiple stings at a time. Like <br />" ?>  
           <?php echo "4 : You Know what is my name!.....","My name is <b>Samee Ullah Feroz</b>" //Here echo print "You Know what is my name!.....My name is Samee Ullah Feroz" at a time ?>  
       <h1 align="center">Print Keyword Functionality in PHP</h1>  
             <h2 align="left">Sample 2 : Print Usage</h2>  
              <?php print "1 : Print is used to print date same as echo does. But.... <br />" ?>  
           <?php print "2 : Print keyword is used to print a single sting at a time. <br />" //Like This Line is printed. String is the collection of alfabetes ?>  
           <?php print "3 : You Know what is my name!....." /*,"My Name is Samee Ullah Feroz"*/ ?>  
                <hr width="30%" align="center">  
                          <?php echo "<b>[Note] :</b> As you can see in 3rd statement of Print Keyword Functionality. 2nd Half Part is not printed. <i>as Echo keyword did.</i>" ?>  
     </body>  
   </html>  


0 comments

Variable Functionality in PHP : 2nd Day Coding lecture

Variable Functionality

Variable Functionality

Sample 1 : Variables Use in Echo

I am going to use variables here

Sample 2 : Variable rules

  Variable Rules given bellow
  1. can be contained alpha numeric characters
  2. 1st character should contain underscore or alphabet
  3. 1st character can not be number or digit
  4. Try to ignore understand ( _ ) as 1st character of variable
    Because mostly major PHP personal variables start with underscore.
  5. Variable starts with Dollar Sign ($)
  6. Try to write variables in small latters
  7. Single File Variables Can not connect with other file variables.

Sample 3 : simple print veritable command

100

Sample 4 : Variables Adding Command

100+50+50 = is the right answer.
200 = is the right answer.

Sample 5 : Variable Replacing Rule

Getting Error In this Code, I'll modify tomorrow
What is Your Name?
My Name is samee.



   <html>  
     <head>  
       <title>Samee : Variable Functionality in PHP : 1st Day Coding lecture</title>  
     </head>  
     <body>  
       <h1 align="center">Variable Functionality</h1>  
         <h2 align="left">Sample 1 : Variables Use in Echo</h2>  
           <?php echo "I am going to use variables here" ?>  
         <h2 align="left">Sample 2 : Variable rules</h2>  
           <?php echo "Variable Rules given bellow <br/>  
                 <ol>  
                   <li>can be contained alpha numeric characters</li>  
                   <li>1st character should contain underscore or alphabet</li>  
                   <li>1st character can not be number or digit</li>  
                   <li>Try to ignore understand ( _ ) as 1st character of variable <br />  
                   Because mostly major php personal variables start with underscore. </li>  
                   <li>Variable starts with Dollar Sign ($)</li>  
                   <li>Try to write variables in small latters</li>  
                   <li>Single File Variables Can not connect with other file variables.</li> </ol>" //4th point is pointed by Teacher ?>  
          <h2 align="left">Sample 3 : simple print variable command</h2>  
            <?php $a=100;  
           echo "$a" #Here 100 is assigned to a ?>  
          <h2 align="left">Sample 4 : Variables Adding Command</h2>  
            <?php $a=100;  
               $b=50;  
               $c=50;  
               echo "$a+$b+$c = is the right answer. <br />" //values will be hold from above veriables ?>  
           <?php $a=100;  
               $b=50;  
               $c=50;  
               $d=$a+$b+$c;  
               echo "$d = is the right answer."  ?>  
          <h2 align="left">Sample 5 : Variable Replacing Rule</h2>  
          <?php echo "Getting Error In this Code, I'll modify tomorrow<br />"?>  
            <?php echo "<b>What is Your Name? </b><br />";  
               $name=100;  
               $name="samee";  
               echo "My Name is $name." ?>  
     </body>  
   </html>  

0 comments

Echo Functionality : 2nd Day Coding Lecture about "Echo"


php echo lecture

Echo Functionality

Sample 1 : Hello World

Hello World

Sample 2 : Concept of Dot is to match up two words.

Hellow world

Sample 3 : Concept of HTML in PHP Code

Hello
World

Sample 3 : Terminator (Semicolon) Rule In PHP

; Performs the rule of Terminator of the line.
It is used to break the line but
at the last line if we won't put it, nothing matter

Sample 4 : What is Echo? Please define it with php codes?

echo is function in php code.
It is used to call the command.it can be used in capital latters as I am doing
Every function is different in Code as echo, Echo, eCho etc has same functionality.



   <html>  
     <head>  
       <title>Samee : Echo Functionality : 1st Day Coding lecture</title>  
     </head>  
     <body>  
       <h1 align="center">Echo Functionality</h1>  
         <h2 align="left">Sample 1 : Hello World</h2>  
           <?php echo "Hello World"; #It was simple command for php understanding ?>  
         <h2 align="left">Sample 2 : Concept of Dot is to match up two words.</h2>  
           <?php echo "Hellow "."world"; //It was easy for me to understand ?>  
         <h2 align="left">Sample 3 : Concept of HTML in PHP Code</h2>  
           <?php echo "<b>Hello</b> <br> <i>World</i>" //It is common code to add HTML within php code?>  
         <h2 align="left">Sample 3 : Terminator (Semicolon) Rule In PHP</h2>  
         <?php /* Here I am going to describe to Terminator point,  
         (;) it is very important.  
         we need to close every single line that php can easily understand the parts of madule. */ ?>  
           <?php echo "; Performs the rule of Terminator of the line. <br>" ;  
               echo "It is used to break the line but <br>  
               at the last line if we won't put it, nothing matter" ?>  
         <?php /* Here I am going to describe the functionality of echo function. */ ?>  
         <h2 align="left">Sample 4 : What is Echo? Please define it with php codes?</h2>  
           <?php echo "<b>echo</b> is function in php code. <br>  
                 It is used to call the command.";  
               Echo "it can be used in capital latters as I am doing <br>";  
               eCho "Every function is different in Code as echo, Echo, eCho etc has same functionality." ?>  
     </body>  
   </html>   


Consultant: 
On Facebook
Gtalk : SEO.Getacho@gmail.com
Skype : SEO.Getacho
0 comments

PHP Learning : 1st Day Tutorial Class

Hi Friends.
From couple of days, I am thinking about to learn PHP. And finally today was my 1st Tutorial Class of PHP. I am getting PHP training from my College friend +Noor Ali Butt. As he is good in development and C++ as I know. I visited many software housed in Lahore, Pakistan. But I could not find a good one. Finally my friend Noor agreed to support me and teach me.
He told me many new things which I am going to describe here.
He asked?
What I know in programming languages exactly?
Wood Profits Banner
I told him, I don't know enough about programming languages but little bit about HTML and CSS just.
He asked me about Java language but I don't know about it.
Then he started to give his lecture as I am going to describe here.
He gave me the concept of programming languages. As we all know PHP, Ajax, ASP etc. are Programming languages but he distinguished about these languages and told me about scripting language and programming languages like "Programming language can do its tasks automatically, it does not need to occur any event" but "Scripting language cannot do its tasks automatically without occurring any event".
He told me about Platform Dependant and Cross-Platform. As a software which can run on multiple Operating systems, is a Cross-Platform just like php language, html language etc.. On the other side if software is designed for specific Operating system, then it is called Plate form dependant as VLC software.
He told me about open source program. As if a program or software is available for free of use, modify, download, edit, study then it is open source program. just like Linux, Mac.
He also told me history of PHP like

PHP History:

as you can see PHP was build in 1994. At that time it was a CGI binaries in the C Programming language as 1st version of PHP. It was upgraded in 1995 and its abbreviation was "Personal Home Page Tools" as 2nd version. It was again upgraded in 1998 and its name was kept "PHP: Hypertext Preprocessor" as 3rd version. in 2000 some updates occurred in it as Version 4.4.6 on March 1, 2007. After that Version 5 was released on 2004 and its second and latest PHP 5.2.1 Version was released on February 8, 2007.
What PHP can do?
  1. With PHP you have command to do many things like.
  2. As you can create new and unlimited dynamic pages
  3. You can add, delete, modify, edit them easily with full access.
  4. You can create new users accounts to access limited data
  5. You can encrypt your data or website
  6. You can add restrictions for users for specific locations on site.
  7. You can send and receive cookies and can make your database
  8. You are not limited on HTML as need to show output.
  9. You can do it with PHP also like to show images, movies, files, and more
  10. You can receive data from specific Form.
Some Needs To Run PHP:
There are some requirements to run PHP just like
  • Web server (apache)
  • PHP software
  • Database (Mysql)
  • Text editor
  • Web browser
As we can use XAMP for Web Server (Local Server)
But we'll work on Wamp as Windows professional
  1. Wamp Server (windows appache mysql php )
  2. Mamp (mac appache mysql php )
  3. Lamp (linux appache mysql php )
  4. Xamp (cross appache mysql php ) 
    1.  Wamp is old name if Xamp for windows version
4 comments
 
Copyright © 2011-2026. Samee Articles - All Rights Reserved
Proudly powered by Blogger