PHP is a widely-used open source scripting language that enables the creation of interactive websites. It provides many features like being free, easy to learn, connecting to databases, and security. PHP code is embedded into HTML and runs on the server. Three key components needed are a web server, PHP software, and a database. All PHP code is contained within opening and closing tags. Variables can hold different data types like numbers, strings, and Booleans without declaring the type.
Advanced PHP Web Development Tools in 2015iScripts
Professional web developers make php web development absolutely stunning with the aid of different kinds of tools. A designer prefers tools after checking number of features, and the choice of the right tool for php web development is vital for creating user-friendliness and better interaction
This document discusses using PHP to build a website generator with an intuitive interface for website creation and administration. It describes having sub-pages that can contain different elements like lists of people or projects, and pages made of one or many sub-pages. The technologies used are PHP, MySQL, CSS, JavaScript, and security is added through username/password and encryption. PHP is described as a scripting language especially suited for dynamic web pages that can interact with databases like MySQL. In comparison, PHP is said to be faster than both JSP and ASP.
This document provides an introduction and overview of PHP, including:
1. PHP is an open-source scripting language used for web development that allows developers to add dynamic content to websites. It can be embedded into HTML and is commonly used to create dynamic websites.
2. Key features of PHP include that it is free, runs on most web servers, and supports a wide range of databases. It allows developers to generate dynamic page content, collect form data, and more.
3. The document discusses PHP syntax, variables, embedding PHP code in web pages, and outputting data through functions like print(), echo(), and sprintf(). It provides examples of how to write PHP code and integrate it into HTML
The document provides an overview of web technologies including HTML, CSS, JavaScript, PHP, content management systems, and databases. The objective is to introduce fundamentals of website creation using these technologies. It discusses basics of HTML and CSS for page layout and styling. JavaScript is described as used for interactive elements. PHP is presented as the programming language embedded in HTML pages and used to dynamically generate content. Popular content management systems like Drupal, WordPress, and Typo3 are highlighted. MySQL is mentioned as a database commonly used with PHP applications.
PHP is a server-side scripting language mainly used for web development. It allows the building of a 3-tier architecture system to help a university relay student information between different layers and audiences. PHP would communicate with databases in the data layer and output HTML and XML to the presentation layer. It is useful for handling multimedia, compatible with databases and OS, open-source, and allows system interaction, though security issues arise from its popularity as a relatively basic language.
This document provides an overview of a PHP and MySQL course taught by Ayub Hussein. It includes information about the course contents, assessment breakdown, rules for the class, and introductions to PHP and MySQL. The course covers topics such as PHP history and syntax, sending data to web browsers, writing comments, and variables. Students will need a web server, PHP, MySQL, web browser, text editor and FTP application to complete the coursework.
The document provides an overview of PHP and frameworks. It discusses open source software, widely used open source products like Linux, Apache, MySQL, and PHP. It covers the difference between open source and closed source software, pros and cons of open source, and background information on PHP including its history, variables, data types, conditional and looping statements, functions, arrays, and more. The document also discusses PHP frameworks, popular frameworks like WordPress, Magento and Opencart, and includes an index of topics covered.
This document provides an overview of PHP (Hypertext Preprocessor), a popular scripting language used to develop dynamic web applications and websites. It discusses what PHP is, how it works with web servers, basic PHP syntax like comments and variables, and PHP data types. Key points covered include that PHP code is executed on the server and outputs HTML, PHP variables do not require declaration, and PHP supports common data types like strings, integers, floats, booleans and arrays.
• PHP stands for PHP: Hypertext Preprocessor
• PHP is a server-side scripting language like ASP
• PHP scripts are executed on the server
• PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)
• PHP is an open source software
• PHP is free to download and use
This document discusses PHP, which stands for Hypertext Preprocessor. PHP is an open-source server-side scripting language used to create dynamic web pages. PHP code is embedded within HTML and executed on the server-side, so the source code is not visible to clients. PHP can interact with databases like MySQL to retrieve and manipulate data for web pages. The document also provides examples of using PHP with MySQL to create a database.
PHP is a server-side scripting language that is commonly used for web development and can be embedded into HTML code. It allows developers to manage dynamic content, connect to databases, track sessions, and build e-commerce sites. PHP code runs on the server and generates HTML that is sent to the user's browser. It is free, runs on most server platforms, and has a large community of developers. LIT Susant K Rout offers PHP training courses in Bhubaneswar, Odisha, India to teach participants how to use PHP for web development.
PHP Programming course provides the knowledge necessary to design and develop dynamic, database-driven web pages using PHP version 5. PHP is a language written for the web, quick to learn, easy to deploy and provides substantial functionality required for e-commerce. This course introduces the PHP framework and syntax, and covers in depth the most important techniques used to build dynamic web sites. Students also learn how to configure PHP and the Apache Web Server. Comprehensive hands on exercises are integrated throughout to reinforce learning and develop real competency.
This document provides an overview of PHP, including:
- PHP stands for Hypertext Preprocessor and is a popular open-source scripting language used for web development.
- PHP features include easy learning, a large function library, ability to embed code directly into HTML, and compatibility with many databases and servers.
- PHP can be used for e-commerce sites, content management, community building, and more. Its history began in 1995 and it is now used on over 10 million websites.
- The document discusses PHP implementations, basics of PHP syntax and control structures, and provides an example of a simple "Hello World" PHP program. It also notes some potential security issues to be aware of.
This document provides an introduction to PHP, including:
- PHP is a server-side scripting language used for building dynamic web content and integrating with databases.
- It is free, open-source, and runs on many platforms. Common uses include building entire e-commerce sites.
- The minimum requirements to use PHP include a PHP-enabled web server, web browser, and text editor for writing PHP scripts.
This document provides an overview of PHP (Hypertext Preprocessor), a widely-used open source scripting language especially suited for web development. It can be embedded into HTML and is executed on the server. PHP files contain text, HTML tags, and scripts enclosed in special PHP tags. An example PHP file is shown that outputs "Hello World". Reasons for using PHP include that it is open source, cross-platform, has free development tools, and supports many databases. PHP can be used for server-side scripting, command line scripting, and desktop applications. The installation procedure and basic PHP scripts, variables, operators, and functions are also outlined.
The document provides an introduction to PHP by giving a brief history, explaining how to get started, and providing examples. It discusses how PHP was created in 1994 and transformed into a server-side scripting language. It describes how to escape from HTML into PHP mode using tags and how to output text. It also gives examples of including a universal header and footer across pages and implementing a simple page counter. New functions added in PHP 5 like array_combine() and date-related functions are also listed.
The document provides an introduction to PHP by giving a brief history, explaining how to get started, and providing examples. It discusses how PHP was created in 1994 and transformed into a server-side scripting language. It describes how to escape from HTML into PHP mode using tags and how to output text. It also gives examples of including a universal header and footer across pages and implementing a simple page counter. New functions added in PHP 5 like array_combine() and date-related functions are also listed.
The document provides an introduction to PHP by giving a brief history, explaining how to get started, and providing examples. It discusses how PHP was created in 1994 and transformed into a server-side scripting language. It describes how to escape from HTML into PHP mode using tags and how to output text. It also gives examples of including a universal header and footer across pages and implementing a simple page counter. New functions added in PHP 5 like array_combine() and date-related functions are also listed.
HEATH INSURANCE CLAIM MANAGEMENT SYSTEM PROJECT REPORT.Kamal Acharya
This project is designed by considering importance of developing software application for handling insurance details of customers which are presently maintained manually in the form of records. This project helps the user to maintain the database of any insurance company and also can update the details of the insurance with the details of the patients along with the hospital side information. The main aim of developing this Insurance Management System is to provide efficient management service to the customer and insurance offices and as well as hospitals. This insurance management system is fully customized desktop application where company can view each patient detail and maintain them efficiently It provides a user-friendly web pages and effective medium to the patients and to the insurance company. This system used to the consumer for reduces their time to waiting for getting insurance and it used to the insurance agency for reduce the work for verify the details which is given by the patients. OBJECTIVE The main intention of introducing this system is to secure the patient file using Blockchain technique identifying patient and company information using identifying mechanism, insurance provider using this website for providing better customer services ,Insurance Companies use it keep tracking customer, owner details and physical verification of the customer etc.
This document provides an overview of an online food delivery website project. It includes a table of contents listing 11 chapters that cover topics like introduction, requirement analysis, introduction to PHP and JavaScript, system specification, design, coding, modules, database design, and conclusions. The introduction chapter describes the objectives of the food delivery website, which are to allow easy profile creation, uploading photos, sending messages, adding friends, and securely processing and delivering information to users. The document provides details on the technologies and features used to develop the website.
PHP may seem to be a very easy language but many of don't know how PHP works. We will discuss the less known facts about PHP and we will also cover some common type of software design patterns used with PHP
Why Orangescrum Is a Game Changer for Construction Companies in 2025Orangescrum
Orangescrum revolutionizes construction project management in 2025 with real-time collaboration, resource planning, task tracking, and workflow automation, boosting efficiency, transparency, and on-time project delivery.
Exploring Wayland: A Modern Display Server for the FutureICS
Wayland is revolutionizing the way we interact with graphical interfaces, offering a modern alternative to the X Window System. In this webinar, we’ll delve into the architecture and benefits of Wayland, including its streamlined design, enhanced performance, and improved security features.
Ad
More Related Content
Similar to Introduction to webprogramming using PHP and MySQL (20)
The document provides an overview of PHP and frameworks. It discusses open source software, widely used open source products like Linux, Apache, MySQL, and PHP. It covers the difference between open source and closed source software, pros and cons of open source, and background information on PHP including its history, variables, data types, conditional and looping statements, functions, arrays, and more. The document also discusses PHP frameworks, popular frameworks like WordPress, Magento and Opencart, and includes an index of topics covered.
This document provides an overview of PHP (Hypertext Preprocessor), a popular scripting language used to develop dynamic web applications and websites. It discusses what PHP is, how it works with web servers, basic PHP syntax like comments and variables, and PHP data types. Key points covered include that PHP code is executed on the server and outputs HTML, PHP variables do not require declaration, and PHP supports common data types like strings, integers, floats, booleans and arrays.
• PHP stands for PHP: Hypertext Preprocessor
• PHP is a server-side scripting language like ASP
• PHP scripts are executed on the server
• PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)
• PHP is an open source software
• PHP is free to download and use
This document discusses PHP, which stands for Hypertext Preprocessor. PHP is an open-source server-side scripting language used to create dynamic web pages. PHP code is embedded within HTML and executed on the server-side, so the source code is not visible to clients. PHP can interact with databases like MySQL to retrieve and manipulate data for web pages. The document also provides examples of using PHP with MySQL to create a database.
PHP is a server-side scripting language that is commonly used for web development and can be embedded into HTML code. It allows developers to manage dynamic content, connect to databases, track sessions, and build e-commerce sites. PHP code runs on the server and generates HTML that is sent to the user's browser. It is free, runs on most server platforms, and has a large community of developers. LIT Susant K Rout offers PHP training courses in Bhubaneswar, Odisha, India to teach participants how to use PHP for web development.
PHP Programming course provides the knowledge necessary to design and develop dynamic, database-driven web pages using PHP version 5. PHP is a language written for the web, quick to learn, easy to deploy and provides substantial functionality required for e-commerce. This course introduces the PHP framework and syntax, and covers in depth the most important techniques used to build dynamic web sites. Students also learn how to configure PHP and the Apache Web Server. Comprehensive hands on exercises are integrated throughout to reinforce learning and develop real competency.
This document provides an overview of PHP, including:
- PHP stands for Hypertext Preprocessor and is a popular open-source scripting language used for web development.
- PHP features include easy learning, a large function library, ability to embed code directly into HTML, and compatibility with many databases and servers.
- PHP can be used for e-commerce sites, content management, community building, and more. Its history began in 1995 and it is now used on over 10 million websites.
- The document discusses PHP implementations, basics of PHP syntax and control structures, and provides an example of a simple "Hello World" PHP program. It also notes some potential security issues to be aware of.
This document provides an introduction to PHP, including:
- PHP is a server-side scripting language used for building dynamic web content and integrating with databases.
- It is free, open-source, and runs on many platforms. Common uses include building entire e-commerce sites.
- The minimum requirements to use PHP include a PHP-enabled web server, web browser, and text editor for writing PHP scripts.
This document provides an overview of PHP (Hypertext Preprocessor), a widely-used open source scripting language especially suited for web development. It can be embedded into HTML and is executed on the server. PHP files contain text, HTML tags, and scripts enclosed in special PHP tags. An example PHP file is shown that outputs "Hello World". Reasons for using PHP include that it is open source, cross-platform, has free development tools, and supports many databases. PHP can be used for server-side scripting, command line scripting, and desktop applications. The installation procedure and basic PHP scripts, variables, operators, and functions are also outlined.
The document provides an introduction to PHP by giving a brief history, explaining how to get started, and providing examples. It discusses how PHP was created in 1994 and transformed into a server-side scripting language. It describes how to escape from HTML into PHP mode using tags and how to output text. It also gives examples of including a universal header and footer across pages and implementing a simple page counter. New functions added in PHP 5 like array_combine() and date-related functions are also listed.
The document provides an introduction to PHP by giving a brief history, explaining how to get started, and providing examples. It discusses how PHP was created in 1994 and transformed into a server-side scripting language. It describes how to escape from HTML into PHP mode using tags and how to output text. It also gives examples of including a universal header and footer across pages and implementing a simple page counter. New functions added in PHP 5 like array_combine() and date-related functions are also listed.
The document provides an introduction to PHP by giving a brief history, explaining how to get started, and providing examples. It discusses how PHP was created in 1994 and transformed into a server-side scripting language. It describes how to escape from HTML into PHP mode using tags and how to output text. It also gives examples of including a universal header and footer across pages and implementing a simple page counter. New functions added in PHP 5 like array_combine() and date-related functions are also listed.
HEATH INSURANCE CLAIM MANAGEMENT SYSTEM PROJECT REPORT.Kamal Acharya
This project is designed by considering importance of developing software application for handling insurance details of customers which are presently maintained manually in the form of records. This project helps the user to maintain the database of any insurance company and also can update the details of the insurance with the details of the patients along with the hospital side information. The main aim of developing this Insurance Management System is to provide efficient management service to the customer and insurance offices and as well as hospitals. This insurance management system is fully customized desktop application where company can view each patient detail and maintain them efficiently It provides a user-friendly web pages and effective medium to the patients and to the insurance company. This system used to the consumer for reduces their time to waiting for getting insurance and it used to the insurance agency for reduce the work for verify the details which is given by the patients. OBJECTIVE The main intention of introducing this system is to secure the patient file using Blockchain technique identifying patient and company information using identifying mechanism, insurance provider using this website for providing better customer services ,Insurance Companies use it keep tracking customer, owner details and physical verification of the customer etc.
This document provides an overview of an online food delivery website project. It includes a table of contents listing 11 chapters that cover topics like introduction, requirement analysis, introduction to PHP and JavaScript, system specification, design, coding, modules, database design, and conclusions. The introduction chapter describes the objectives of the food delivery website, which are to allow easy profile creation, uploading photos, sending messages, adding friends, and securely processing and delivering information to users. The document provides details on the technologies and features used to develop the website.
PHP may seem to be a very easy language but many of don't know how PHP works. We will discuss the less known facts about PHP and we will also cover some common type of software design patterns used with PHP
Why Orangescrum Is a Game Changer for Construction Companies in 2025Orangescrum
Orangescrum revolutionizes construction project management in 2025 with real-time collaboration, resource planning, task tracking, and workflow automation, boosting efficiency, transparency, and on-time project delivery.
Exploring Wayland: A Modern Display Server for the FutureICS
Wayland is revolutionizing the way we interact with graphical interfaces, offering a modern alternative to the X Window System. In this webinar, we’ll delve into the architecture and benefits of Wayland, including its streamlined design, enhanced performance, and improved security features.
Apple Logic Pro X Crack FRESH Version 2025fs4635986
🌍📱👉COPY LINK & PASTE ON GOOGLE http://drfiles.net/ 👈🌍
Logic Pro X is a professional digital audio workstation (DAW) software for macOS, developed by Apple. It's a comprehensive tool for music creation, offering features for songwriting, beat making, editing, and mixing. Logic Pro X provides a wide range of instruments, effects, loops, and samples, enabling users to create a variety of musical styles.
Here's a more detailed breakdown:
Digital Audio Workstation (DAW):
Logic Pro X allows users to record, edit, and mix audio and MIDI tracks, making it a central hub for music production.
MIDI Sequencing:
It supports MIDI sequencing, enabling users to record and manipulate MIDI performances, including manipulating parameters like note velocity, timing, and dynamics.
Software Instruments:
Logic Pro X comes with a vast collection of software instruments, including synthesizers, samplers, and virtual instruments, allowing users to create a wide variety of sounds.
Audio Effects:
It offers a wide range of audio effects, such as reverbs, delays, EQs, compressors, and distortion, enabling users to shape and polish their mixes.
Recording Facilities:
Logic Pro X provides various recording facilities, allowing users to record vocals, instruments, and other audio sources.
Mixing and Mastering:
It offers tools for mixing and mastering, allowing users to refine their mixes and prepare them for release.
Integration with Apple Ecosystem:
Logic Pro X integrates well with other Apple products, such as GarageBand, allowing for seamless project transfer and collaboration.
Logic Remote:
It supports remote control via iPad or iPhone, enabling users to manipulate instruments and control mixing functions from another device.
Join Ajay Sarpal and Miray Vu to learn about key Marketo Engage enhancements. Discover improved in-app Salesforce CRM connector statistics for easy monitoring of sync health and throughput. Explore new Salesforce CRM Synch Dashboards providing up-to-date insights into weekly activity usage, thresholds, and limits with drill-down capabilities. Learn about proactive notifications for both Salesforce CRM sync and product usage overages. Get an update on improved Salesforce CRM synch scale and reliability coming in Q2 2025.
Key Takeaways:
Improved Salesforce CRM User Experience: Learn how self-service visibility enhances satisfaction.
Utilize Salesforce CRM Synch Dashboards: Explore real-time weekly activity data.
Monitor Performance Against Limits: See threshold limits for each product level.
Get Usage Over-Limit Alerts: Receive notifications for exceeding thresholds.
Learn About Improved Salesforce CRM Scale: Understand upcoming cloud-based incremental sync.
Exceptional Behaviors: How Frequently Are They Tested? (AST 2025)Andre Hora
Exceptions allow developers to handle error cases expected to occur infrequently. Ideally, good test suites should test both normal and exceptional behaviors to catch more bugs and avoid regressions. While current research analyzes exceptions that propagate to tests, it does not explore other exceptions that do not reach the tests. In this paper, we provide an empirical study to explore how frequently exceptional behaviors are tested in real-world systems. We consider both exceptions that propagate to tests and the ones that do not reach the tests. For this purpose, we run an instrumented version of test suites, monitor their execution, and collect information about the exceptions raised at runtime. We analyze the test suites of 25 Python systems, covering 5,372 executed methods, 17.9M calls, and 1.4M raised exceptions. We find that 21.4% of the executed methods do raise exceptions at runtime. In methods that raise exceptions, on the median, 1 in 10 calls exercise exceptional behaviors. Close to 80% of the methods that raise exceptions do so infrequently, but about 20% raise exceptions more frequently. Finally, we provide implications for researchers and practitioners. We suggest developing novel tools to support exercising exceptional behaviors and refactoring expensive try/except blocks. We also call attention to the fact that exception-raising behaviors are not necessarily “abnormal” or rare.
🌱 Green Grafana 🌱 Essentials_ Data, Visualizations and Plugins.pdfImma Valls Bernaus
eady to harness the power of Grafana for your HackUPC project? This session provides a rapid introduction to the core concepts you need to get started. We'll cover Grafana fundamentals and guide you through the initial steps of building both compelling dashboards and your very first Grafana app. Equip yourself with the essential tools to visualize your data and bring your innovative ideas to life!
Who Watches the Watchmen (SciFiDevCon 2025)Allon Mureinik
Tests, especially unit tests, are the developers’ superheroes. They allow us to mess around with our code and keep us safe.
We often trust them with the safety of our codebase, but how do we know that we should? How do we know that this trust is well-deserved?
Enter mutation testing – by intentionally injecting harmful mutations into our code and seeing if they are caught by the tests, we can evaluate the quality of the safety net they provide. By watching the watchmen, we can make sure our tests really protect us, and we aren’t just green-washing our IDEs to a false sense of security.
Talk from SciFiDevCon 2025
https://www.scifidevcon.com/courses/2025-scifidevcon/contents/680efa43ae4f5
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdfTechSoup
In this webinar we will dive into the essentials of generative AI, address key AI concerns, and demonstrate how nonprofits can benefit from using Microsoft’s AI assistant, Copilot, to achieve their goals.
This event series to help nonprofits obtain Copilot skills is made possible by generous support from Microsoft.
What You’ll Learn in Part 2:
Explore real-world nonprofit use cases and success stories.
Participate in live demonstrations and a hands-on activity to see how you can use Microsoft 365 Copilot in your own work!
PDF Reader Pro Crack Latest Version FREE Download 2025mu394968
🌍📱👉COPY LINK & PASTE ON GOOGLE https://dr-kain-geera.info/👈🌍
PDF Reader Pro is a software application, often referred to as an AI-powered PDF editor and converter, designed for viewing, editing, annotating, and managing PDF files. It supports various PDF functionalities like merging, splitting, converting, and protecting PDFs. Additionally, it can handle tasks such as creating fillable forms, adding digital signatures, and performing optical character recognition (OCR).
Cryptocurrency Exchange Script like Binance.pptxriyageorge2024
This SlideShare dives into the process of developing a crypto exchange platform like Binance, one of the world’s largest and most successful cryptocurrency exchanges.
AgentExchange is Salesforce’s latest innovation, expanding upon the foundation of AppExchange by offering a centralized marketplace for AI-powered digital labor. Designed for Agentblazers, developers, and Salesforce admins, this platform enables the rapid development and deployment of AI agents across industries.
Email: [email protected]
Phone: +1(630) 349 2411
Website: https://www.fexle.com/blogs/agentexchange-an-ultimate-guide-for-salesforce-consultants-businesses/?utm_source=slideshare&utm_medium=pptNg
Best Practices for Collaborating with 3D Artists in Mobile Game DevelopmentJuego Studios
Discover effective strategies for working with 3D artists on mobile game projects. Learn how top mobile game development companies streamline collaboration with 3D artists in Dubai for high-quality, optimized game assets.
Secure Test Infrastructure: The Backbone of Trustworthy Software DevelopmentShubham Joshi
A secure test infrastructure ensures that the testing process doesn’t become a gateway for vulnerabilities. By protecting test environments, data, and access points, organizations can confidently develop and deploy software without compromising user privacy or system integrity.
DVDFab Crack FREE Download Latest Version 2025younisnoman75
⭕️➡️ FOR DOWNLOAD LINK : http://drfiles.net/ ⬅️⭕️
DVDFab is a multimedia software suite primarily focused on DVD and Blu-ray disc processing. It offers tools for copying, ripping, creating, and editing DVDs and Blu-rays, as well as features for downloading videos from streaming sites. It also provides solutions for playing locally stored video files and converting audio and video formats.
Here's a more detailed look at DVDFab's offerings:
DVD Copy:
DVDFab offers software for copying and cloning DVDs, including removing copy protections and creating backups.
DVD Ripping:
This allows users to rip DVDs to various video and audio formats for playback on different devices, while maintaining the original quality.
Blu-ray Copy:
DVDFab provides tools for copying and cloning Blu-ray discs, including removing Cinavia protection and creating lossless backups.
4K UHD Copy:
DVDFab is known for its 4K Ultra HD Blu-ray copy software, allowing users to copy these discs to regular BD-50/25 discs or save them as 1:1 lossless ISO files.
DVD Creator:
This tool allows users to create DVDs from various video and audio formats, with features like GPU acceleration for faster burning.
Video Editing:
DVDFab includes a video editing tool for tasks like cropping, trimming, adding watermarks, external subtitles, and adjusting brightness.
Video Player:
A free video player that supports a wide range of video and audio formats.
All-In-One:
DVDFab offers a bundled software package, DVDFab All-In-One, that includes various tools for handling DVD and Blu-ray processing.
DVDFab Crack FREE Download Latest Version 2025younisnoman75
Ad
Introduction to webprogramming using PHP and MySQL
1. M D ANANDA RAJ,
Assistant Professor,
Department of computer science
Loyola College, chennai-600 034
[email protected]
8/3/2017 1
Introduction to
Web Programming using
PHPand MYSQL
3. What is Scripting language?
• Scripting language is the one which is used to
develop contents in the web
• Write the code by using predefined tags
<html> contents </html>
• Example :
• HTML, JAVASCRIPT, VBSCRIPT, CSS , XML
8/3/2017 3
4. What is Client & Server
Client:
client is the system which is looking for
some service
Eg: the system end user using in the lab
Server:
server is the system which is providing
service for the clients (end user)
Eg: server in the computer lab
8/3/2017 4
5. Client side…
• Client side scripting language executed from
the client machine(System)
example : HTML , CSS, JAVASCRIPT, VBSCRIPT
- Not secured
- any user can view the original by seeing the
view source option in the browser
- any user can view the source code
and modify
8/3/2017 5
6. Server side …
• Server side scripting language executed from the
server machine(System)
example : ASP , PHP , JSP
- Very much secured
- User cannot view the original source code by
seeing the view source option in the browser it
will show only the html code
- user cannot modify the source code
8/3/2017 6
7. web contents
• Web can be classified in to two types
1.static page
-contents will not change remain as it is
-user input interaction not possible
2. Dynamic page :
- Contents can be updated very easily
- user input and interaction is possible
8/3/2017 7
8. What is Open source?
• In software development Open source is the
concept or philosophy that promotes free
distribution of software product without any
license fees.
• Example: open source
• Operating System: Linux
• Script language : PHP,PERL, PYTHON
• Browser : Mozilla Firefox
• Photo Editor : GIMP
• Office : Open Office
8/3/2017 8
9. Open source development model
View/Modify the source code of an application or software.
he source code of an application or software.
Open source software is released to the development community
and undergoes a secondary phase of evolution, but closed source
software is developed in isolation with a small team of developers.
Developer support and large community to help.
Open Source is more secure and bugs and vulnerabilities are fixed
often.
source software is released to the development community and
undergoes a secondary phase of evolution, but closed source
software is developed in isolation with a small team of developers.
Developer support and large community to help.
Open Source is more secure and bugs and vulnerabilities are fixed
often.
8/3/2017 9
10. Advantages…
• Free source code
• No need pay license fees
• No need to depend on vendors
• Easy to fix the error with online support
• Support from forum all around the world
• Updated software version
• Quality and customizable software
• Cost cheaper than licensed software
8/3/2017 10
11. Disadvantages…
• Users need to update very frequently
• Incompatibility issue with software and
hardware
• Bad codes
• Software quality assurance process is not
transparent
• No financial benefit for the developers
8/3/2017 11
12. What is wamp?
• WAMP is a web server used to execute php
and mysql in client machine
• A- APACHE
• M- MySQL
• P- PHP
• W- WINDOWS
It is “ APACHE MYSQL PHP FOR WINDOWS
LAMP : APACHE MYSQL PHP FOR LINUX
8/3/2017 12
14. PHP-Introduction
• PHP == ‘Hypertext Preprocessor’
• Open-source, server-side scripting language
• Used to generate dynamic web-pages
• PHP scripts reside between reserved PHP
tags
– This allows the programmer to embed PHP
scripts within HTML page
– Free to download and use
8/3/2017 14
15. Overview of PHP…
• Easy learning
• Syntax Perl- and C-like syntax. Relatively easy
to learn.
• Large function library
• Embedded directly into HTML
• Interpreted, no need to compile
• Supports many databases like oracle, MySQL
etc
8/3/2017 15
16. Php…
• Interpreted language, scripts are parsed at
run-time rather than compiled
• Executed on the server-side
• Source-code not visible by client
– ‘View Source’ in browsers does not display the PHP code
• Various built-in functions allow for fast
development
• Compatible with many popular databases
8/3/2017 16
17. History of php…
In 1994 developed by Rasmus Lerdorf developed
he called the Personal Home Page or PHP
PHP 2 released 1997 (PHP now stands for
Hypertext Processor)
PHP3 released in 1998 (2 versions)
PHP4 released in 2000 (6 versions).
PHP5.0.0 released July 13, 2004 (1000s of
libraries and functions
PHP5.0.5 released Sept. 6, 2005 for maintenance
and bug fixes (21 versions)
PHP 6.0 is the latest version
8/3/2017 17
18. Features of php…
• Simplicity
• Portability
• Speed
• Open source
• Extensible
• Database support
8/3/2017 18
19. Hello.php
• Open the note pad
<html>
<?php
Echo “hello good morning”;
?>
</html>
Save this code as hello.php under
c:wampwwwanandhello.php
8/3/2017 19
20. Data types supported by PHP:
• Integers 0,1,2,3etc
• Float/ Double – real numbers 0.1, 0.2, 0.3, etc
• String – ‘A’, “Loyola College” etc
• Boolean – True or False
• Array – set of values – {0,1,2,3}or
{0.1,0.2,0.3}or {‘A’, ‘B’, ‘C’} or {“kumar”,
Santhosh”, “Karthick”} etc
8/3/2017 20
21. Variable declaration
Variables are used for storing values, such as numbers, strings or
function results, so that they can be used many times in a script .All
variables in PHP start with a $ sign symbol.
Syntax:
$var_name = value;
<?php
$txt = "Hello World!";
$number = 16;
?>
Note : PHP a variable does not need to be declared before being
set.PHP automatically converts the variable to the correct data
type, depending on how they are set.
8/3/2017 21
22. PHP Variable….
• PHP variables must begin with a “$” sign
• Case-sensitive ($Name != $NAME != $NaMe)
• Global and locally-scoped variables
– Global variables can be used anywhere
– Local variables restricted to a function or class
• Certain variable names reserved by PHP
– Form variables ($_POST, $_GET)
– Server variables ($_SERVER)
– Etc.
8/3/2017 22
23. constants
• PHP constants: Constants are like variables
except that once they are defined they cannot
be changed or undefined. The value cannot be
changed during the script.
• Eg:
<?php
define("MSG", “good morning");
echo MSG;
?>
8/3/2017 23
24. Looping
• Most of the time when we write code, we want the same
block of code to run a number of times for this purpose we
can use looping statements code to perform this task.
• PHP supports the following:
• while - loops through a block of code if and as long as a
specified condition is true
• do...while - loops through a block of code once, and then
repeats the loop as long as a special condition is true
• for - loops through a block of code a specified number of
times
• foreach- loops through a block of code for each element in
an array
8/3/2017 24
25. Example for each
• Example:
<?php
$arr=array("one", "two", "three");
foreach ($arr as $value)
{
echo "Value: " . $value . "<br />";
?>
8/3/2017 25
26. cookies
• A cookie is often used to identify a user. A
cookie is a small file that the server embeds
on the user's computer.
• Each time the same computer requests a
page with a browser, it will send the cookie
too.
• With PHP, you can both create and retrieve
cookie values.
8/3/2017 26
27. What is a PHP Session?
• When you work with an application, you open it, do
some changes, and then you close it. This is much like a
Session. The computer knows who you are. It knows
when you start the application and when you end
• Session variables solve this problem by storing user
information to be used across multiple pages (e.g.
username, password etc). By default, session variables
last until the user closes the browser.
• Session variables hold information about one single
user, and are available to all pages in one application.
8/3/2017 27
28. MySQL…
MySQL, the most popular Open Source SQL database
management system
It is developed and supported by MySQL AB. MySQL AB is a
commercial company, founded in 1995 by the MySQL
developers.
The MySQL® software delivers a very fast, multi-threaded,
multi-user, and robust SQL (Structured Query Language)
database server.
The MySQL software is Dual Licensed. Users can choose to
use the MySQL software as an Open Source product and
also as commericial licence
8/3/2017 28
29. MySQL…
• MySQL is a very popular, open source
database.
• Officially pronounced “my Ess Que Ell” (not
my sequel).
• Handles very large databases; very fast
performance.
8/3/2017 29
30. MySQL storage engines…
• MyISAM –default engine
• InnoDB – features like foreign key,locking
• MERGE – integration of table
• MEMORY (HEAP) – suit for short time storage
• BDB (BerkeleyDB)- hash based storage
• EXAMPLE – used for programmers
• ARCHIVE –to store large amount of data
• CSV – to store data in text files
• BLACKHOLE –only for testing purpose
• ISAM – to store non transactional tables
8/3/2017 30