Social Icons

Saturday, November 15, 2014

IT Company List

Ahmedabad Software Companies, Download Ahmedabad IT Directory

Click Hear For IT Company List with Address  


List of Software & IT Companies in Ahmedabad/Gandhinagar, Gujarat, India.

Click Hear For IT Company List with Address  

List of Companies in Ahmedabad, Top Companies in Ahmedabad, MNC
Companies in Ahmedabad, Private Limited Companies in Ahmedabad, Public
Limited .


Click Hear For IT Company List with Address  

Software Companies in Ahmedabad - Get best price quotes from Ahmedabad
Software Companies, Software ... List of Software Companies in Ahmedabad.


Here we have listed all IT and Software companies in Ahmedabad and
Gandhinagar. You can find company name with address and contact information.


Click Hear For IT Company List with Address  

List of new companies in Ahmedabad 2014, new companies in Ahmedabad data,
New companies in Ahmedabad 2013, 2012 data.


 MCA Project IT Company List

Click Hear For IT Company List with Address  

IT Student Project for IT Company

 Click Hear For IT Company List with Address 

PHP .net Java And Android and other IT Company List

Click Hear For IT Company List with Address  
  

Friday, November 7, 2014

AJAX Tutorial

AJAX Tutorial for Beginners - Learning AJAX Technology in simple and easy
steps. A beginner's tutorial containing complete knowledge of AJAX, ...
AJAX Tutorial

   AJAX, shorthand for Asynchronous JavaScript and XML, is a web development technique for creating interactive web applications.
AJAX meant to increase the web page's interactivity, speed, and usability.
If you know Javascript, HTML, CSS and XML then you need to spend just one hour to startwith AJAX.

Table of Contents

What is AJAX ?
This section explains fundamentals of AJAX and its advantages over conventional web applications.

AJAX Technology
This section tells about all the technology involved in AJAX to make it success
.
AJAX Examples
Here we have listed out few real live examples which are using AJAX technology.

AJAX Browser Support
Find a list of all the browsers supporting AJAX and a way to make your application compatible to various browsers

AJAX in Action
Here we will take real coding example and will show how AJAX works.

What is AJAX XMLHttpRequest
We will explain XMLHttpRequest object in detail.


AJAX Database Applications
You will learn how to make AJAX application to interact with the database
.
AJAX Security Side
This chapter explains security issues related with AJAX.

Issues with AJAX
AJAX is not free from Issues. What are these issues ? You will come to know in this chapter.

Thursday, November 6, 2014

jQuery Tutorial

jQuery Tutorial

Click on the "Try it yourself" button to see how it works. jQuery Examples. Learn
by examples! At W3Schools you will find a lot of jQuery examples to edit and test
 ...


jQuery Tutorial for Beginners - Learning JavaScript Framework in simple and
easy steps. A beginner's tutorial containing complete knowledge of jQuery ...


jQuery Fundamentals is designed to get you comfortable working through
common problems you'll be called upon to solve using jQuery. To get the most
out of ...

  

Thursday, October 16, 2014

HNGU MCA

Master of Computer Application (MCA). Course Code: MCAOO. Course: Post Graduate. Course Faculty: Management. CBCS Syllabus: application/pdf icon ...

Study Material. GTU Material. Syllabus ... PROVISIONAL LIST OF PARTICIPATING INSTITUTES - MCA (2014-15) ... 7, 507, D.L.Patel Institute of Management & Technology, MCA college.(SFI)- .... MCA-HNGU (GIA),Patan. GIA, 60, 60, 0, 60, 0.

Hemchandracharya North Gujarat University, Patan was established in 1986. The college was affiliated to State University, NAAC accreditation grade as B ...

HEMCHANDRACHARYA NORTH GUJARAT UNIVERSITY RESULTS ... MCA Sem 2 : http://www.ngu.ac.in/RESULT_MAR_JUN_2012/MCASEM2.asp. Website ...

hngu MCA Materials

HNGU MCA MATERIALS

HNGU MCA MATERIAL

   

Sunday, September 21, 2014



www.gtumcamaterials.blogspot.com

Thanks forvisit

Saturday, September 20, 2014

List of Courses offered by GTU

                                                 List of Courses offered by GTU



List of Courses offered by GTU
Diploma Engineering
Automobile Engineering
Biomedical Engineering
Chemical Engineering
Civil Engineering
Computer Engineering
Electrical Engineering
Electronics & Communication Engineering
Environment Engineering
Information Technology
Instrumentation & Control Engineering
Mechanical Engineering
Mechatronics Engineering
Metallurgy Engineering
Mining Engineering
Plastic Engineering
Power Electronics
Textile Processing Technology
Textile Manufacturing Technology
Architectural Assistantship
Computer Aided Costume Design & Dress Making
Ceramic Engineering
Fabrication Technology
Printing Technology
Textile Designing
Transportation Engineering
Diploma Pharmacy
Bachelor of Engineering
Aeronautical Engineering
Automobile Engineering
Bio Medical Engineering
Bio-Technology
Chemical Engineering
Civil Engineering
Computer Engineering
Electrical & Electronics Engineering
Electrical Engineering
Electronics Engineering
Electronics & Communication Engineering
Electronics & Telecommunication Engineering
Environmental Engineering
Food Processing & Technology
Industrial Engineering
Information Technology
Instrumentation & Control Engineering
Marine Engineering
Mechanical Engineering
Mechatronics Engineering
Metallurgy Engineering
Mining Engineering
Plastic Technology
Power Electronics
Production Engineering
Rubber Technology
Textile Processing
Textile Technology
Computer Science & Engineering
Information & Communication Technology
Manufacturing Engineering
Environmental Science And Technology
Chemical Technology
Environmental Science & Engineering
Bachelor of Pharmacy
Bachelor of Architecture
Bachelor of Hotel Management and Catering Technology
Post Diploma Degree Course
Civil Engineering
Electrical Engineering
Mechanical Engineering
Electronics & Communication Engineering
Master of Business Management
Marketing Management
Finance Management
Human Resource Management
Information Systems Management
International Business Management
Banking & Insurance
Rural & Agro-Based Management
Asian Business
Sustainable Global Enterprise
Entrepreneurship and Family Business
Master of Computer Applications
Master of Pharmacy
Quality Assurance and Farm Regulatory Affairs
Pharmaceutical Management and Regulatory Affairs
Pharmaceutics
Pharm. Chemistry
Pharmaceutical Tech. and Pharmaceutics
Pharmacology
Qual. Assurance
Pharmacognosy
Clinical Pharmacy
Pharmaceutical Quality Assurance
Pharmaceutical Technology
Pharmacology &Toxicology
Industrial Pharmacy
Quality Assurance Technique
Medical Chemistry
Pharmaceutical Analysis
Master of Engineering
Computer Science & Engineering
Computer Engineering
Instrumentation And Control (Applied Instrumentation)
Electronics And Communication Engineering
Communication Systems Engineering
Communication Engineering
Electrical Engineering
Mechanical (CAD/CAM)
Mechanical (Machine Design)
Mechanical (Cryogenic Engg.)
Mechanical (I.C.Engine & Automobile)
Civil ( Water Resources Management)
Civil (Transportation Engineering)
Construction Engineering &Management
Civil (Casad)
Chemical Engineering (Computer Aided Process Design)
Environmental Engineering
Environmental Management
Transportation System Engineering
Civil (Structural Engineering)
Mechanical (Thermal Engg.)
Digital Communications
Information Technology
Plastic Engineering
Textile Engineering
Signal Processing And VLSI Technology (EC)
Wireless Communication Systems And Networks (EC)
Mechanical (Production Engineering)
Power Electronics
Chemical Engineering
Bio-Medical Engineering
Computer Aided Structural Analysis
Water Resources Eng. & Management
Thermal Science
Automobile Engg.
Automation & Control
Power System
Computer Science & Technology
Energy Engineering
Rubber Engineering
Signal Processing & Communication
VLSI System Design
Civil (Geotechnical Engineering)
Wireless Communication Technology (EC)
Power Electronics & Electrical Drives
Mechanical (Industrial Engineering)
Mechatronics
Civil (Town And Country Planning)
Civil (Construction Management)
Mechanical (Advance Manufacturing System)
IT Systems And Network Security
VLSI & Embedded Systems Design
Wireless Mobile Computing
Embedded System
Master in Applied Management
Master in Technology Management
Master in Pharmacy Management
Master of Computer Applications(Intergrated)
Master of Philosophy (Business Studies)
Doctor of Philosophy
Engineering
Pharmacy
Management
Humanities

GUJARAT TECHNOLOGICAL UNIVERSITY

Welcome to the world of GTU Study Material. We have everything to help you for
your education need. You can find here and download Study materials, ..


GTU STUDENT SPECIAL........



GTU Study Materials,GTU 1st study material, GTU 3rd Sem Study Materials, GTU
5th Sem Study Materials, GTU 3rd Sem Exam Papers, GTU 5th Sem Exam ...



GUJARAT TECHNOLOGICAL UNIVERSITY. Learning Material for Bridge course
BE. Bridge Course Chemistry · Bridge Course English · Bridge Course ICT.


Bridge Course syllabus and learning material for EE (Mechanical Engg) ·
Teaching scheme for Semester I and semester II for all courses of Bachelor of ...


Below is a List of Subject along with Subject Codes for Information &
Communication Technology 7th Semester Question Papers for the Exams
Conducted in ...


   

Tuesday, September 16, 2014

joomla History


Joomla was the result of a fork of Mambo on August 17, 2005. At that time, the Mambo name was a trademark of Miro International Pvt. Ltd., who formed a non-profit foundation with the stated purpose of funding the project and protecting it from lawsuits.[12] The Joomla development team claimed that many of the provisions of the foundation structure violated previous agreements made by the elected Mambo Steering Committee, lacked the necessary consultation with key stakeholders and included provisions that violated core open source values.[13]


Click Hear to Download Joomla



Joomla developers created a website called OpenSourceMatters.org (OSM) to distribute information the software community. Project leader Andrew Eddie wrote a letter[14] that appeared on the announcements section of the public forum at mamboserver.com. Over one thousand people joined OpenSourceMatters.org within a day, most posting words of encouragement and support. The website received the Slashdot effect as a result. Miro CEO Peter Lamont responded publicly to the development team in an article titled "The Mambo Open Source Controversy — 20 Questions With Miro".[15] This event created controversy within the free software community about the definition of open source. Forums of other open-source projects were active with postings about the actions of both sides.
In the two weeks following Eddie's announcement, teams were re-organized and the community continued to grow. Eben Moglen and the Software Freedom Law Center (SFLC) assisted the Joomla core team beginning in August 2005, as indicated by Moglen's blog entry from that date and a related OSM announcement.[16][17] The SFLC continue to provide legal guidance to the Joomla project.[18]
On August 18, Andrew Eddie called for community input to suggest a name for the project. The core team reserved the right for the final naming decision, and chose a name not suggested by the community. On September 22, the new name, Joomla!, was announced. It is the anglicised spelling of the Swahili word jumla meaning all together or as a whole[19] which also has a similar meaning in at least Amharic, Arabic and Urdu. On September 26, the development team called for logo submissions from the community and invited the community to vote on the logo; the team announced the community's decision on September 29. On October 2, brand guidelines, a brand manual, and a set of logo resources were published.[20]
Joomla won the Packt Publishing Open Source Content Management System Award in 2006, 2007, and 2011.[21][22][23]
On October 27, 2008, PACKT Publishing announced that Johan Janssens was the Most Valued Person (MVP), for his work as one of the lead developers of the 1.5 Joomla Framework and Architecture. In 2009 Johan Janssens received the Most Valued Person award for his role as Joomla architect and development coordinators.

Joomla


oomla 3.3 is the newest version recommended for new installs. It includes the
latest and greatest features of Joomla and mobile/responsive support. Download
 ...


Download Letest Version of Joomla Click Hera.......

Joomla 2.5 features one-click updates, natural language search, multi-database
support, and much more. Click More Info



Joomla 3; Mobile Ready; User Friendly; Dev Tools; All Features; Download.
Joomla 3. Mobile R3ADY / US3R Friendly. Download Joomla 3 Live Demo ...


About Joomla. |. Community. |. Forum. |. Extensions ... Joomla Hosting by Rochen
. Home » Projects » Joomla! » Releases » Browse Releases. Joomla!


Download Letest Version of Joomla Click Hera.......

Joomla is an award-winning content management system (CMS), which enables
you to build Web sites and powerful online applications. Many aspects ...



Download Letest Version of Joomla Click Hera.......
    

Engineering Students .


GTU MCA STUDENT SPECIAL, Now all Materials available on ... Share your
useful materials on this sharing place just by sending it to gtumca@gmail.com
with .


GTU Diploma Engineering(DE) | BE | ME ... Download Materials


GTU Study Material , Exam papers , Syllabus of Diploma Engineering(DE) | BE |
ME ... Also Faculties can upload their study materials for GTU students using 


GTU Study Materials,GTU 1st study material, GTU 3rd Sem Study Materials, GTU
5th ... GTU Exam Papers solutions, Study Materials for Engineering, Pharmacy, ...


GTU Diploma Engineering(DE) | BE | ME ... Download Materials

19 Feb 2014 ... This post will give you Study material, eBooks and study notes for the GTU
Students (Gujarat Technological University). There are lots of ...


26 Aug 2011 ... GTU MATERIAL PROVIDE YOU ALL TYPE OF EDUCATION MATERIAL ... Useful
Material for MBA students - sem-III ~ GTU MATERIAL.


GTU MCA Student Special!!! Ebooks & PPT Sharing is my aim... Home · Android
... Subscribe via email. Enter your email address and get Latest Material : ...


GTU Diploma Engineering(DE) | BE | ME ... Download Materials

27 Aug 2014 ... GTU Study Material. Download Study material, Syllabus, Question Papers of DE,
BE,ME,MBA,MCA, of Gujarat Technological University(GTU) ... GATE Study
Material for Computer Engineering Students ...


GTU Study Material , Exam papers , Syllabus of Diploma Engineering(DE) | BE |
ME ... Also Faculties can upload their study materials for GTU students using ...



GTU Diploma Engineering(DE) | BE | ME ... Download Materials


11 Sep 2013 ... by Final Year Engg Students, related to their IDP/UDP final year project. LJIET ...
GTU has put self-study material on its site and at YouTube.


Study Materials. GTU Paper Solution ... Join Clusters · GTU Placement Reviews ·
Student Corner · Documents · GTU Colleges List. Latest News. GTU Masters in
Applied Management (MAM) Exam papers... GTU Masters in ... GTU Engineering
books survey. ... Download GTU Diploma Exam Papers and Syllabus... Sign In ...


GTU Diploma Engineering(DE) | BE | ME ... Download Materials

Where Students can get all the study materials of Gujarat Technological
University, We are... ... Darshan Institute of Engineering & Technology · GEC
BHUJ.
 
 
 
 
 
 
 
 
 

Saturday, September 13, 2014

S.P.College of Engg.,Visnagar



Prof. Idrish I. Sandhi
Asst. Professor,
S.P.College of Engg.,Visnagar

( Mobile Computing(MC) (650003) )

For Letest Materials :-

MC Point-1.pdf    Download

MC Point-2.pdf      Download


Click Hear More Materials .........

 

Saturday, September 6, 2014

Degree Engineering


This is not official website of GTU, This is our sincere effort to help you more. [
Official ... Study Material. GTU Material ... GTU B.E. (Degree Engineering)
Syllabus ..


GTUInfo.in · Colleges · Degree Engineering Colleges ... Advertisement (D2D).
Study Material. GTU Material. Syllabus ... Engineering-Degree Colleges in
Gujarat ...


GTUInfo.in · Colleges · Degree Engineering Colleges ... Study Material. GTU
Material. Syllabus · Exam Papers · e-Books ... Engineering-Degree - GTU Results
 ...


These have been prepared by the Council of Deans for Degree Engineering ...
The sequence in which the project report material should be arranged and bound
 ...


Bridge course for Students of Degree Engineering for Academic year 2014-15. ...
Bridge Course syllabus and learning material for EE (Mechanical Engg).


GTU Study Materials,GTU 1st study material, GTU 3rd Sem Study Materials, GTU
5th Sem Study Materials, GTU ... Course : Degree Engineering (Semester-8).


GTU Study Material , Exam papers , Syllabus of Diploma Engineering(DE) | BE ...
for students studying in Diploma Engineering(DE) , Degree Engineering(BE) ...


      

B.Tech

JACPC | Results | GTUKnowledge | SPFU ]. GTUInfo.in · Colleges ... Study
Material. GTU Material. Syllabus ... B. Tech(Hons. in ICT with CS) (1002) -
Syllabus .


This is not official website of GTU, This is our sincere effort to help you more. [
Official ... Study Material. GTU Material ... GTU B.E. (Degree Engineering)
Syllabus ...


Gujarat Technological University B.Tech in Chemical Engineering 4th Semester
... B.E in Chemical Engineering, 4th Semester, Strength of Materials Papers ...


Learning Material for Bridge course BE · Bridge Course syllabus and learning
material for EE (Mechanical Engg) ... D.Pharm, B.Pharm & M.Pharm .....
Application Development organized under GTU Mobile and Wireless
Technologies Club ...


GTU B.Tech Chemical Engineering 4th Sem Process Heat Transfer ... question
paper of Gujarat Technological University (GTU) for B.Tech in ... UOP Chemical
Engineering 3rd semester-chemical engineering materials exam ...


Here you can find B.Tech Chemical Engineering and Materials Science 4th Sem
question paper of gtu(Gujarat Technological University) for year 2012.


Gujarat Technological University (GTU) ... Rajasthan Technical University (RTU)
... (B.Tech. FIRST YEAR (ALL BRANCHES)). 1st/2nd Sem. Papers. Price (Rs.).


5 Jul 2013 ... GTUExam.co.in ... The students of any collage - university of B.E-ME-B.Tech-M.
Tech can ... Analysis & Design of Smart Materials and Structures


       

GTU MATERIAL


GTU MCA STUDENT SPECIAL, Now all Materials available on ... Share your
useful materials on this sharing place just by sending it to dharmchaudhary91@gmail.com
with ...



Lecturer Notes Engineering, Pharmacy, MCA, MBA, Free to download reference
books, study notes, paper solutions. Find out GTU Exam paper solutions.


GTU Study Material , Exam papers , Syllabus of Diploma Engineering(DE) | BE |
ME | MBA | MCA of Gujarat Technological University(GTU)...


GTU MCA Student Special!!! Ebooks & PPT ... Subscribe via email. Enter your
email address and get Latest Material : ... Notes :- Std XII. You might also like:.


all gtu mca materials study materials for gtu mca gtu practical programs sem1
sem2 sem3 sem4 sem5 sem6 free project download IT news updates gtu
updates ...


gtu mca material study material for gtu mca old question papers of gtu mca sem1
sem2 sem3 sem4 sem5 ... share your college materials on gtumca@yahoo.com.


26 Aug 2011 ... WELCOME TO GTU MATERIAL ... Useful Material for MBA students - sem-III ~
GTU MATERIAL ..... GTU | MCA | OS | List of operating system.


18 Aug 2011 ... C++ GTU MCA PPT | GTU STUDY MATERIALS This C++ PPT will help you to
MCA ,BCA Students to Learn C++. PPT Contains all the Topics of ...
 
 
 
 
 
 

Friday, August 29, 2014

php-16

PHP for C Developers

 

The simplest way to think of PHP is as interpreted C that you can embed in HTML documents. The language itself is a lot like C, except with untyped variables, a whole lot of Web-specific libraries built in, and everything hooked up directly to your favorite Web server.
The syntax of statements and function definitions should be familiar, except that variables are always preceded by $, and functions do not require separate prototypes.
Here we will put some similarities and diferences in PHP and C

Similarities:

  • Syntax: Broadly speaking, PHP syntax is the same as in C: Code is blank insensitive, statements are terminated with semicolons, function calls have the same structure (my_function(expression1, expression2)), and curly braces ({ and }) make statements into blocks. PHP supports C and C++-style comments (/* */ as well as //), and also Perl and shell-script style (#).
  • Operators: The assignment operators (=, +=, *=, and so on), the Boolean operators (&&, ||, !), the comparison operators (<,>, <=, >=, ==, !=), and the basic arithmetic operators (+, -, *, /, %) all behave in PHP as they do in C.
  • Control structures: The basic control structures (if, switch, while, for) behave as they do in C, including supporting break and continue. One notable difference is that switch in PHP can accept strings as case identifiers.
  • Function names: As you peruse the documentation, you.ll see many function names that seem identical to C functions.

Differences:

  • Dollar signs: All variables are denoted with a leading $. Variables do not need to be declared in advance of assignment, and they have no intrinsic type.
  • Types: PHP has only two numerical types: integer (corresponding to a long in C) and double (corresponding to a double in C). Strings are of arbitrary length. There is no separate character type.
  • Type conversion: Types are not checked at compile time, and type errors do not typically occur at runtime either. Instead, variables and values are automatically converted across types as needed.
  • Arrays: Arrays have a syntax superficially similar to C's array syntax, but they are implemented completely differently. They are actually associative arrays or hashes, and the index can be either a number or a string. They do not need to be declared or allocated in advance.
  • No structure type: There is no struct in PHP, partly because the array and object types together make it unnecessary. The elements of a PHP array need not be of a consistent type.
  • No pointers: There are no pointers available in PHP, although the typeless variables play a similar role. PHP does support variable references. You can also emulate function pointers to some extent, in that function names can be stored in variables and called by using the variable rather than a literal name.
  • No prototypes: Functions do not need to be declared before their implementation is defined, as long as the function definition can be found somewhere in the current code file or included files.
  • Memory management: The PHP engine is effectively a garbage-collected environment (reference-counted), and in small scripts there is no need to do any deallocation. You should freely allocate new structures - such as new strings and object instances. IN PHP5, it is possible to define destructors for objects, but there is no free or delete. Destructors are called when the last reference to an object goes away, before the memory is reclaimed.
  • Compilation and linking: There is no separate compilation step for PHP scripts.
  • Permissiveness: As a general matter, PHP is more forgiving than C (especially in its type system) and so will let you get away with new kinds of mistakes. Unexpected results are more common than errors.

    his chapter will list out major similarities and differences in between PHP and PERL. This will help PERL developers to understand PHP very quickly and avoid common mistakes.

    Similarities:

  • Compiled scripting languages: Both Perl and PHP are scripting languages.This means that they are not used to produce native standalone executables in advance of execution.
  • Syntax: PHP's basic syntax is very close to Perl's, and both share a lot of syntactic features with C. Code is insensitive to whitespace, statements are terminated by semicolons, and curly braces organize multiple statements into a single block. Function calls start with the name of the function, followed by the actual arguments enclosed in parentheses and separated by commas.
  • Dollar-sign variables: All variables in PHP look like scalar variables in Perl: a name with a dollar sign ($) in front of it.
  • No declaration of variables: As in Perl, you don.t need to declare the type of a PHP variable before using it.
  • Loose typing of variables: As in Perl, variables in PHP have no intrinsic type other than the value they currently hold. You can store iether number or string in same type of variable.
  • Strings and variable interpolation: Both PHP and Perl do more interpretation of double-quoted strings ("string") than of singlequoted strings ('string').

Differences:

  • PHP is HTML-embedded: Although it is possible to use PHP for arbitrary tasks by running it from the command line, it is more typically connected to a Web server and used for producing Web pages. If you are used to writing CGI scripts in Perl, the main difference in PHP is that you no longer need to explicitly print large blocks of static HTML using print or heredoc statements and instead can simply write the HTML itself outside of the PHP code block.
  • No @ or % variables: PHP has one only kind of variable, which starts with a dollar sign ($). Any of the datatypes in the language can be stored in such variables, whether scalar or compound.
  • Arrays versus hashes: PHP has a single datatype called an array that plays the role of both hashes and arrays/lists in Perl.
  • Specifying arguments to functions: Function calls in PHP look pretty much like subroutine calls in Perl. Function definitions in PHP, on the other hand, typically require some kind of list of formal arguments as in C or Java which is not the csse in PERL.
  • Variable scoping in functions: In Perl, the default scope for variables is global. This means that top-level variables are visible inside subroutines. Often, this leads to promiscuous use of globals across functions. In PHP, the scope of variables within function definitions is local by default.
  • No module system as such: In PHP there is no real distinction between normal code files and code files used as imported libraries.
  • Break and continue rather than next and last: PHP is more like C langauge and uses break and continue instead of next and last statement.
  • No elsif: A minor spelling difference: Perl's elsif is PHP's elseif.
  • More kinds of comments: In addition to Perl-style (#) single-line comments, PHP offers C-style multiline comments (/* comment */ ) and Java-style single-line comments (// comment).
  • Regular expressions: PHP does not have a built-in syntax specific to regular expressions, but has most of the same functionality in its "Perl-compatible" regular expression functions.
1  2   3      5      7      9   10   11   12    13    14      15      16

php-15


PHP and XML

XML is a markup language that looks a lot like HTML. An XML document is plain text and contains tags delimited by < and >.There are two big differences between XML and HTML:
  • XML doesn't define a specific set of tags you must use.
  • XML is extremely picky about document structure.
XML gives you a lot more freedom than HTML. HTML has a certain set of tags: the <a></a> tags surround a link, the <p> startsa paragraph and so on. An XML document, however, can use any tags you want. Put <rating></rating> tags around a movie rating, >height></height> tags around someone's height. Thus XML gives you option to device your own tags.
XML is very strict when it comes to document structure. HTML lets you play fast and loose with some opening and closing tags. BUt this is not the case with XML.

HTML list that's not valid XML:

<ul>
<li>Braised Sea Cucumber
<li>Baked Giblets with Salt
<li>Abalone with Marrow and Duck Feet
</ul>
This is not a valid XML document because there are no closing </li> tags to match up with the three opening <li> tags. Every opened tag in an XML document must be closed.

HTML list that is valid XML:

<ul>
<li>Braised Sea Cucumber</li>
<li>Baked Giblets with Salt</li>
<li>Abalone with Marrow and Duck Feet</li>
</ul>

Parsing an XML Document:

PHP 5's new SimpleXML module makes parsing an XML document, well, simple. It turns an XML document into an object that provides structured access to the XML.
To create a SimpleXML object from an XML document stored in a string, pass the string to simplexml_load_string( ). It returns a SimpleXML object.

Example:

Try out following example:
<?php

$channel =<<<_XML_
<channel>
<title>What's For Dinner<title>
<link>http://menu.example.com/<link>
<description>Choose what to eat tonight.</description>
</channel>
_XML_;

$xml = simplexml_load_string($channel);
print "The $xml->title channel is available at $xml->link. ";
print "The description is \"$xml->description\"";
?>
It will produce following result:
The What's For Dinner channel is available at http://menu.example.com/. The description is "Choose what to eat tonight."
NOTE: You can use function simplexml_load_file( filename) if you have XML content in a file.
For a complete detail of XML parsing function check PHP Function Reference.

Generating an XML Document:

SimpleXML is good for parsing existing XML documents, but you can't use it to create a new one from scratch.
The easiest way to generate an XML document is to build a PHP array whose structure mirrors that of the XML document and then to iterate through the array, printing each element with appropriate formatting.

Example:

Try out following example:
<?php

$channel = array('title' => "What's For Dinner",
                 'link' => 'http://menu.example.com/',
                 'description' => 'Choose what to eat tonight.');
print "<channel>\n";
foreach ($channel as $element => $content) {
   print " <$element>";
   print htmlentities($content);
   print "</$element>\n";
}
print "</channel>";
?>
It will produce following result:
<channel>
<title>What's For Dinner</title>
<link>http://menu.example.com/</link>
<description>Choose what to eat tonight.</description>
</channel></html> 
 

Object Oriented Programming in PHP

We can imagine our universe made of different objects like sun, earth, moon etc. Similarly we can imagine our car made of different objects like wheel, steering, gear etc. Same way there is object oriented programming concepts which assume everything as an object and implement a software using different objects.

Object Oriented Concepts:

Before we go in detail, lets define important terms related to Object Oriented Programming.
  • Class: This is a programmer-defined datatype, which includes local functions as well as local data. You can think of a class as a template for making many instances of the same kind (or class) of object.
  • Object: An individual instance of the data structure defined by a class. You define a class once and then make many objects that belong to it. Objects are also known as instance.
  • Member Variable: These are the variables defined inside a class. This data will be invisible to the outside of the class and can be accessed via member functions. These variables are called attribute of the object once an object is created.
  • Member function: These are the function defined inside a class and are used to access object data.
  • Inheritance: When a class is defined by inheriting existing function of a parent class then it is called inheritance. Here child class will inherit all or few member functions and variables of a parent class.
  • Parent class: A class that is inherited from by another class. This is also called a base class or super class.
  • Child Class: A class that inherits from another class. This is also called a subclass or derived class.
  • Polymorphism: This is an object oriented concept where same function can be used for different purposes. For example function name will remain same but it make take different number of arguments and can do different task.
  • Overloading: a type of polymorphism in which some or all of operators have different implementations depending on the types of their arguments. Similarly functions can also be overloaded with different implementation.
  • Data Abstraction: Any representation of data in which the implementation details are hidden (abstracted).
  • Encapsulation: refers to a concept where we encapsulate all the data and member functions together to form an object.
  • Constructor: refers to a special type of function which will be called automatically whenever there is an object formation from a class.
  • Destructors: refers to a special type of function which will be called automatically whenever an object is deleted or goes out of scope.

Defining PHP Classes:

The general form for defining a new class in PHP is as follows:
<?php
class phpClass{
   var $var1;
   var $var2 = "constant string";
   function myfunc ($arg1, $arg2) {
      [..]
   }
   [..]
}
?>
Here is the description of each line:
  • The special form class, followed by the name of the class that you want to define.
  • A set of braces enclosing any number of variable declarations and function definitions.
  • Variable declarations start with the special form var, which is followed by a conventional $ variable name; they may also have an initial assignment to a constant value.
  • Function definitions look much like standalone PHP functions but are local to the class and will be used to set and access object data.

Example:

Here is an example which defines a class of Books type:
<?php
class  Books{
    /* Member variables */
    var $price;
    var $title;
    /* Member functions */
    function setPrice($par){
       $this->price = $par;
    }
    function getPrice(){
       echo $this->price ."<br/>";
    }
    function setTitle($par){
       $this->title = $par;
    }
    function getTitle(){
       echo $this->title ." <br/>";
    }
}
?>
The variable $this is a special variable and it refers to the same object ie. itself.

Creating Objects in PHP

Once you defined your class, then you can create as many objects as you like of that class type. Following is an example of how to create object using new operator.
   $physics = new Books;
   $maths = new Books;
   $chemistry = new Books;
Here we have created three objects and these objects are independent of each other and they will have their existance separately. Next we will see how to access member function and process member variables.

Calling Member Functions

After creating your objects, you will be able to call member functions related to that object. One member function will be able to process member variable of related object only.
Following example shows how to set title and prices for the three books by calling member functions.
   $physics->setTitle( "Physics for High School" );
   $chemistry->setTitle( "Advanced Chemistry" );
   $maths->setTitle( "Algebra" );

   $physics->setPrice( 10 );
   $chemistry->setPrice( 15 );
   $maths->setPrice( 7 );
Now you call another member functions to get the values set by in above example:
   $physics->getTitle();
   $chemistry->getTitle();
   $maths->getTitle();
   $physics->getPrice();
   $chemistry->getPrice();
   $maths->getPrice();
This will produce follwoing result:
  Physics for High School
  Advanced Chemistry
  Algebra
  10
  15
  7

Constructor Functions:

Constructor Functions are special type of functions which are called automatically whenever an object is created. So we take full advantage of this behaviour, by initializing many things through constructor functions.
PHP provides a special function called __construct() to define a constructor. You can pass as many as arguments you like into the constructor function.
Following example will create one constructor for Books class and it will initialize price and title for the book at the time of object creation.
function __construct( $par1, $par2 ){
   $this->price = $par1;
   $this->title = $par2;
}
Now we don't need to call set function separately to set price and title. We can initialize these two member variables at the time of object creation only. Check following example below:
   $physics = new Books( "Physics for High School", 10 );
   $maths = new Books ( "Advanced Chemistry", 15 );
   $chemistry = new Books ("Algebra", 7 );

   /* Get those set values */
   $physics->getTitle();
   $chemistry->getTitle();
   $maths->getTitle();

   $physics->getPrice();
   $chemistry->getPrice();
   $maths->getPrice();
This will produce following result:
  Physics for High School
  Advanced Chemistry
  Algebra
  10
  15
  7

Destructor:

Like a constructor function you can define a destructor function using function __destruct(). You can release all the resourceses with-in a destructor.

Inheritance:

PHP class definitions can optionally inherit from a parent class definition by using the extends clause. The syntax is as follows:
  class Child extends Parent {
     <definition body>
  }
The effect of inheritance is that the child class (or subclass or derived class) has the following characteristics:
  • Automatically has all the member variable declarations of the parent class.
  • Automatically has all the same member functions as the parent, which (by default) will work the same way as those functions do in the parent.
Following example inherit Books class and adds more functionality based on the requirement.
class Novel extends Books{
   var publisher;
   function setPublisher($par){
     $this->publisher = $par;
   }
   function getPublisher(){
     echo $this->publisher. "<br />";
   }
}
Now apart from inherited functions, class Novel keeps two additional member functions.

Function Overriding:

Function definitions in child classes override definitions with the same name in parent classes. In a child class, we can modify the definition of a function inherited from parent class.
In the follwoing example getPrice and getTitle functions are overriden to retrun some values.
    function getPrice(){
       echo $this->price . "<br/>";
       return $this->price;
    }
    function getTitle(){
       echo $this->title . "<br/>";
       return $this->title;
    }

Public Members:

Unless you specify otherwise, properties and methods of a class are public. That is to say, they may be accessed in three possible situations:
  • From outside the class in which it is declared
  • From within the class in which it is declared
  • From within another class that implements the class in which it is declared
Till now we have seen all members as public members. If you wish to limit the accessibility of the members of a class then you define class members as private or protected.

Private members:

By designating a member private, you limit its accessibility to the class in which it is declared. The private member cannot be referred to from classes that inherit the class in which it is declared and cannot be accessed from outside the class.
A class member can be made private by using private keyword infront of the member.
class MyClass {
   private $car = "skoda";
   $driver = "SRK";

   function __construct($par) {
      // Statements here run every time
      // an instance of the class
      // is created.
   }
   function myPublicFunction() {
      return("I'm visible!");
   }
   private function myPrivateFunction() {
      return("I'm  not visible outside!");
   }
}
When MyClass class is inherited by another class using extends, myPublicFunction() will be visible, as will $driver. The extending class will not have any awareness of or access to myPrivateFunction and $car, because they are declared private.

Protected members:

A protected property or method is accessible in the class in which it is declared, as well as in classes that extend that class. Protected members are not available outside of those two kinds of classes. A class member can be made protected by using protected keyword infront of the member.
Here is different version of MyClass:
class MyClass {
   protected $car = "skoda";
   $driver = "SRK";

   function __construct($par) {
      // Statements here run every time
      // an instance of the class
      // is created.
   }
   function myPublicFunction() {
      return("I'm visible!");
   }
   protected function myPrivateFunction() {
      return("I'm  visible in child class!");
   }
}

Interfaces:

Interfaces are defined to provide a common function names to the implementors. Different implementors can implement those interfaces according to theri requirements. You can say, interfaces are skeltons which are implemented by developers.
As of PHP5, it is possible to define an interface, like this:
interface Mail {
   public function sendMail();
}
Then, if another class implemented that interface, like this:
class Report implements Mail {
   // sendMail() Definition goes here
}

Constants:

A constant is somewhat like a variable, in that it holds a value, but is really more like a function because a constant is immutable. Once you declare a constant, it does not change.
Declaring one constant is easy, as is done in this version of MyClass:
class MyClass {
   const requiredMargin = 1.7;
   function __construct($incomingValue) {
      // Statements here run every time
      // an instance of the class
      // is created.
   }
}
In this class, requiredMargin is a constant. It is declared with the keyword const, and under no circumstances can it be changed to anything other than 1.7. Note that the constant's name does not have a leading $, as variable names do.

Abstract Classes:

An abstract class is one that cannot be instantiated, only inherited. You declare an abstract class with the keyword abstract, like this:
When inheriting from an abstract class, all methods marked abstract in the parent's class declaration must be defined by the child; additionally, these methods must be defined with the same visibillity.
abstract class MyAbstractClass {
   abstract function myAbstractFunction() {
   }
}
Note that function definitions inside an abstract class must also be preceded by the keyword abstract. It is not legal to have abstract function definitions inside a non-abstract class.

Static Keyword:

Declaring class members or methods as static makes them accessible without needing an instantiation of the class. A member declared as static can not be accessed with an instantiated class object (though a static method can).
Try out following example:
<?php
class Foo
{
    public static $my_static = 'foo';

    public function staticValue() {
        return self::$my_static;
    }
}
print Foo::$my_static . "\n";
$foo = new Foo();
print $foo->staticValue() . "\n";

Final Keyword:

PHP 5 introduces the final keyword, which prevents child classes from overriding a method by prefixing the definition with final. If the class itself is being defined final then it cannot be extended.
Following example results in Fatal error: Cannot override final method BaseClass::moreTesting()
<?php
class BaseClass {
   public function test() {
       echo "BaseClass::test() called<br>";
   }
  
   final public function moreTesting() {
       echo "BaseClass::moreTesting() called<br>";
   }
}

class ChildClass extends BaseClass {
   public function moreTesting() {
       echo "ChildClass::moreTesting() called<br>";
   }
}
?>

Calling parent constructors:

Instead of writing an entirely new constructor for the subclass, let's write it by calling the parent's constructor explicitly and then doing whatever is necessary in addition for instantiation of the subclass. Here's a simple example:
class Name
{
   var $_firstName;
   var $_lastName;
   function Name($first_name, $last_name)
   {
     $this->_firstName = $first_name;
     $this->_lastName = $last_name;
   }
   function toString() {
     return($this->_lastName .", " .$this->_firstName);
   }
}
class NameSub1 extends Name
{
   var $_middleInitial;
   function NameSub1($first_name, $middle_initial, $last_name) {
       Name::Name($first_name, $last_name);
       $this->_middleInitial = $middle_initial;
   }
   function toString() {
       return(Name::toString() . " " . $this->_middleInitial);
   }
}
In this example, we have a parent class (Name), which has a two-argument constructor, and a subclass (NameSub1), which has a three-argument constructor. The constructor of NameSub1 functions by calling its parent constructor explicitly using the :: syntax (passing two of its arguments along) and then setting an additional field. Similarly, NameSub1 defines its nonconstructor toString() function in terms of the parent function that it overrides.
NOTE: A constructor can be defined with the same name as the name of a class. It is defined in above example.

 

1  2   3      5      7      9   10   11   12    13    14      15      16
 

 

php-14

PHP will work with virtually all database software, including Oracle and Sybase but most commonly used is freely available MySQL database.

What you should already have ?

  • You have gone through MySQL tutorial to understand MySQL Basics.
  • Downloaded and installed a latest version of MySQL.
  • Created database user guest with password guest123.
  • If you have not created a database then you would need root user and its password to create a database.
We have divided this chapter in the following sections:
  1. Connecting to MySQL database - Learn how to use PHP to open and close a MySQL database connection.
  2. Create MySQL Database Using PHP - This part explains how to create MySQL database and tables using PHP.
  3. Delete MySQL Database Using PHP - This part explains how to delete MySQL database and tables using PHP.
  4. Insert Data To MySQL Database - Once you have created your database and tables then you would like to insert your data into created tables. This session will take you through real example on data insert.
  5. Retrevieng Data From MySQL Database - Learn how to fetch records from MySQL database using PHP.
  6. Using Paging through PHP - This one explains how to show your query result into multiple pages and how to create the navigation link.
  7. Updating Data Into MySQL Database - This part explains how to update existing records into MySQL database using PHP.
  8. Deleting Data From MySQL Database - This part explains how to delete or purge existing records from MySQL database using PHP.
  9. Using PHP To Backup MySQL Database - Learn different ways to take backup of your MySQL database for safety purpose.

    What is AJAX ?

  10. AJAX stands for Asynchronous JavaScript and XML. AJAX is a new technique for creating better, faster, and more interactive web applications with the help of XML, HTML, CSS and Java Script.
  11. Conventional web application trasmit information to and from the sever using synchronous requests. This means you fill out a form, hit submit, and get directed to a new page with new information from the server.
  12. With AJAX when submit is pressed, JavaScript will make a request to the server, interpret the results and update the current screen. In the purest sense, the user would never know that anything was even transmitted to the server.
For complete learning on AJAX, please refer to AJAX Tutorial.

PHP and AJAX Example:

To clearly illustrate how easy it is to access information from a database using Ajax and PHP, we are going to build MySQL queries on the fly and display the results on "ajax.html". But before we proceed, lets do ground work. Create a table using the following command.
NOTE: We are asuing you have sufficient privilege to perform following MySQL operations
CREATE TABLE `ajax_example` (
  `name` varchar(50) NOT NULL,
  `age` int(11) NOT NULL,
  `sex` varchar(1) NOT NULL,
  `wpm` int(11) NOT NULL,
  PRIMARY KEY  (`name`)
) 
Now dump the following data into this table using the foloowing SQL statements
INSERT INTO `ajax_example` VALUES ('Jerry', 120, 'm', 20);
INSERT INTO `ajax_example` VALUES ('Regis', 75, 'm', 44);
INSERT INTO `ajax_example` VALUES ('Frank', 45, 'm', 87);
INSERT INTO `ajax_example` VALUES ('Jill', 22, 'f', 72);
INSERT INTO `ajax_example` VALUES ('Tracy', 27, 'f', 0);
INSERT INTO `ajax_example` VALUES ('Julie', 35, 'f', 90);

Client Side HTML file

Now lets have our client side HTML file which is ajax.html and it will have following code
<html>
<body>
<script language="javascript" type="text/javascript">
<!-- 
//Browser Support Code
function ajaxFunction(){
 var ajaxRequest;  // The variable that makes Ajax possible!
 
 try{
   // Opera 8.0+, Firefox, Safari
   ajaxRequest = new XMLHttpRequest();
 }catch (e){
   // Internet Explorer Browsers
   try{
      ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
   }catch (e) {
      try{
         ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
      }catch (e){
         // Something went wrong
         alert("Your browser broke!");
         return false;
      }
   }
 }
 // Create a function that will receive data 
 // sent from the server and will update
 // div section in the same page.
 ajaxRequest.onreadystatechange = function(){
   if(ajaxRequest.readyState == 4){
      var ajaxDisplay = document.getElementById('ajaxDiv');
      ajaxDisplay.innerHTML = ajaxRequest.responseText;
   }
 }
 // Now get the value from user and pass it to
 // server script.
 var age = document.getElementById('age').value;
 var wpm = document.getElementById('wpm').value;
 var sex = document.getElementById('sex').value;
 var queryString = "?age=" + age ;
 queryString +=  "&wpm=" + wpm + "&sex=" + sex;
 ajaxRequest.open("GET", "ajax-example.php" + 
                              queryString, true);
 ajaxRequest.send(null); 
}
//-->
</script>
<form name='myForm'>
Max Age: <input type='text' id='age' /> <br />
Max WPM: <input type='text' id='wpm' />
<br />
Sex: <select id='sex'>
<option value="m">m</option>
<option value="f">f</option>
</select>
<input type='button' onclick='ajaxFunction()' 
                              value='Query MySQL'/>
</form>
<div id='ajaxDiv'>Your result will display here</div>
</body>
</html>
NOTE: The way of passing variables in the Query is according to HTTP standard and the have formA
URL?variable1=value1;&variable2=value2;
Now the above code will give you a screen as given below

NOTE: This is dummy screen and would not work
Max Age: 

Max WPM:

Sex:
Your result will display here

Server Side PHP file

So now your client side script is ready. Now we have to write our server side script which will fetch age, wpm and sex from the database and will send it back to the client. Put the following code into "ajax-example.php" file
<?php
$dbhost = "localhost";
$dbuser = "dbusername";
$dbpass = "dbpassword";
$dbname = "dbname";
 //Connect to MySQL Server
mysql_connect($dbhost, $dbuser, $dbpass);
 //Select Database
mysql_select_db($dbname) or die(mysql_error());
 // Retrieve data from Query String
$age = $_GET['age'];
$sex = $_GET['sex'];
$wpm = $_GET['wpm'];
 // Escape User Input to help prevent SQL Injection
$age = mysql_real_escape_string($age);
$sex = mysql_real_escape_string($sex);
$wpm = mysql_real_escape_string($wpm);
 //build query
$query = "SELECT * FROM ajax_example WHERE sex = '$sex'";
if(is_numeric($age))
 $query .= " AND age <= $age";
if(is_numeric($wpm))
 $query .= " AND wpm <= $wpm";
 //Execute query
$qry_result = mysql_query($query) or die(mysql_error());

 //Build Result String
$display_string = "<table>";
$display_string .= "<tr>";
$display_string .= "<th>Name</th>";
$display_string .= "<th>Age</th>";
$display_string .= "<th>Sex</th>";
$display_string .= "<th>WPM</th>";
$display_string .= "</tr>";

// Insert a new row in the table for each person returned
while($row = mysql_fetch_array($qry_result)){
 $display_string .= "<tr>";
 $display_string .= "<td>$row[name]</td>";
 $display_string .= "<td>$row[age]</td>";
 $display_string .= "<td>$row[sex]</td>";
 $display_string .= "<td>$row[wpm]</td>";
 $display_string .= "</tr>";
 
}
echo "Query: " . $query . "<br />";
$display_string .= "</table>";
echo $display_string;
?>

Now try by entering a valid value in "Max Age" or any other box and then click Query MySQL button.
Max Age: 

Max WPM:

Sex:
Your result will display here

If you have successfully completed this lesson then you know how to use MySQL, PHP, HTML, and Javascript in tandem to write Ajax applications


1  2   3      5      7      9   10   11   12    13    14      15      16
 
Blogger Templates