Comments In PHP

Comments in php code are lines that are not read or executed as part of the program. Its purpose is to indicate some guiding text to  the person editing the code.

Comments are useful for:

  • To let others understand what you are doing, comments help other programmers understand what you were doing in each step.
  • To remind yourself, what you were working on. Most programmers have experienced coming back to their own work a year or two later and have to re-figure the working of their program.

PHP suppports three ways of adding comment/s.

Single Line Comment





Multi-line Comment






PHP Case Sensitivity

In PHP, All user defined functions, Classes and keywords are not Case Sensitive.



echo "EXAMPLE";


Both statements will execute.


Basic Components of Net Framework 3.5

Components of .Net Framework 3.5

Before moving to the next step on .Net technology, let us see various components of the .Net framework 3.5.

Following are components of the .Net framework 3.5 and the work they perform:
1. Common Language Runtime or CLR

It performs memory management, debugging, security checking, exception handling, thread execution, code safety, code execution, verification, and compilation. The code that is directly managed by the CLR is called the managed code. After compiling the managed code, the compiler converts the source code into intermediate language (IL) code. A Just In Time(JIT) compiler converts the IL code into native/machine code, which is CPU specific.

2 .Net Framework Class Library

It contains a library collection of reusable types. classes, interfaces, structures, and enumerated values, which are in group called types.

3. Common Language Specification

It contains the specifications for .Net supported languages and implementation of language integration.

4. Common Type System

It provides general rules for declaring, using, and managing types at run-time, and cross-language transmission.

5. Metadata and Assemblies

Metadata is the binary information which describes the program, which is either placed in a executable file (PE) or in the memory. Assembly is a logical unit consisting of the assembly manifest, IL code, type metadata and a set of resources like image files.

6. Windows Forms

Windows Forms contains the graphical presentation of any window displayed in the application.


ASP.NET is the web development model and AJAX is an extended part of ASP.NET for developing and implementing AJAX functionality. ASP.NET AJAX provide the components that allows the developer to update data on a website without completely reloading the page.


It is the technology used for manipulating with data and databases. It provides access to information sources like SQL server, XML, OLE DB, etc. The ADO.NET technology connects to database for retrieving, manipulating, and updating data.

9. Windows Workflow Foundation (WF)

It assists in building work-flow-based applications in desktop environment. It haves workflow run time, activities, work-flow designer, and a rules engine.

10.Windows Presentation Foundation

It provides a partition between and the business logic and the user interface. It helps in developing visually stunning interfaces using media, two and three dimensional graphics, documents, animations, and more.

11. Windows Communication Foundation (WCF)

It is the technology used for setting-up and executing connected systems.

12. Windows CardSpace

It provides safety for accessing resources and sharing private information on the network.

13. LINQ

It imparts data querying capabilities to .Net languages using a syntax which is equivalent to the tradition SQL query language.



PHP Script Basics

PHP Script Basics

PHP is a scripting language which is used for developing dynamic webpages. Php script and html code can share same file for the development. So to differentiate php code from other stuff. There are four ways to define syntax :

1.  The Most common ways is to use Canonical PHP tags to mark where is php code

   <?php /*place your php code here*/ ?>


2. Short-Open tags is the shortest option one can use, but for using this, one must :

  •        Choose the –enable-short-tags configuration option when you’re building PHP script.
  •        Set the short_open_tag setting in your php.ini file to on. This option must be disabled to parse XML with PHP because the same syntax is used for XML tags.

   <? /* Your php code here */ ?>


3. ASP style tags are just like actual Active Server Pages tags.  And can be used after some configuration in php.ini file.

   <% your php code %>


4. HTML script tags are just how we add any javascript in html. Just replace javascript with PHP and place your code within the script tags.

   <script language="PHP">...</script>


The file which contain php code should be saved with .php or any other compatible extension.


HTML Basics – Syntax definition


It starts with <!DOCTYPE html html-file-extension-interface-symbol_318-45345>  //It’s used for rendering purpose.

All  elements must be written inside opening <html> and closing </html> tags.

Visible portion of markup comes within <body>…..</body> tags.


<!DOCTYPE html>
                 <title> MY TITLE </title>
            //place your content here


<h1>,<h2>,<h3>,<h4>,<h5>,<h6> tags can be used to represent different text size.

It used for heading, sub-heading and so on.




Paragraph can be defined with <p></p> tags

Anchor tags can be used to generate hyperlinks <a>

Images can be added with <img> tag. It’s Syntax is explained in below example.

<p>This is our sample paragraph</p>

<a href="">link text</a>
here, the target location is added to the href attribute.
Anything at place of link text will work as hyperlink on frontend.

//HTML images are defined with the <img> tag.
<img src="logo.jpg" alt="" width="104" height="142">
/*The source file (src), alternative text (alt), and size (width and height) are provided as attributes:*/