Introduction
- PHP stands for Hypertext Preprocessor.
- It is a server side scripting language.
- It is open source means free to download and use.
- It can embedded in HTML code.
- It can generate dynamic page content.
- It is integrated with number of databases.
- It case sensitive.
- # (or) // used for single line comment.
- /*...*/ is used for multi line comment.
- $ sign is used to declare a variable.
- echo or print statement is used to display output data on screen.
- We can define constant variable by using define(name,value,case-insensitivity).
IIS
1) Internet information services
2) It is an extensible web server created by Microsoft for windows family
3) Is used to deploy websites and services
4) Supports HTTP, HTTPS, FTP, FTPS, SMTP and NNTP
5) Official website is http://www.iis.net
6) It has to be configured manually
Configuration Steps:
Control panel → programs and features → turn windows features on or off → internet info services (open and click all check boxes) → goto .Net framework 4.5 advanced services → WCF services (open and click all check boxes) → goto .Net framework 3.5 services → click on windows communication foundation http activation → click OK
Regeditor: Registry Editor is a graphical tool in windows OS that allows authorized users to view windows registry changes and make changes.
Web server:
A system that delivers content or services to the end users over the internet using HTTP protocols.
It used for web applications like MakeMyTrip, BookMyShow, Flipkart, OLX and Pinterest.
Ex: Internet Information Services, Apache HTTP server, Sun java
Application Server:
A software that provides facilities to create web applications and server environment to run them.
It provides business logic to application programs.
It is used for web and as well as enterprise applications
Ex: Apache Tomcat,WebSphere, Jboss and glashfish.
Firewall:
It is a software utility and hardware device that acts as filter for data entering and leaving network or computer.
Feature of firewall is Resistant to attacks.
1) IIS stands for Internet information services
2) It is an extensible web server created by Microsoft for windows family
3) Is used to deploy websites and services
4) Supports HTTP, HTTPS, FTP, FTPS, SMTP and NNTP
5) Official website is http://www.iis.net
6) It has to be configured manually
Configuration Steps:
Control panel → programs and features → turn windows features on or off → internet info services (open and click all check boxes) → goto .Net framework 4.5 advanced services → WCF services (open and click all check boxes) → goto .Net framework 3.5 services → click on windows communication foundation http activation → click OK
Step 2:Install PHP by using Web PI
1) Download web platform installer
2) Finish the installation.
3) Open IIS,In that open web platform installer.
4) Goto Products → Frameworks → Select the current version of PHP → Click install → Click I Accept (Web PI installs all PHP packages) → Click Finish.
Step 3: Download and Install PHP Manually
1) Download PHP non thread safe zip package.
2) Download WinCache extension for PHP.
3) Extract the zip files to single folder.
4) Goto control panel → system and security → system →Advanced system options → set Environment Variable path.
5) Open IIS, Select host name of computer in connections panel → open Handler Mappings.
6) In the Action panel, Add Module Mapping.
Ex Code:
Output:
Step 4: MS Sql Server for PHP
1) First add the MS Sql drivers in IIS from WP Installer.
2) Download the sqlsrv.exe file according to php version.
3) Add the .dll files from sqlsrv.exe in ext folder of php folder.
4) Add dll file extensions in php.ini file.
5) Now open the phpinfo.php page, We will find sqlsrv.
Sql Connection Program:
Output:
Inserting form data:
Output:
Output:
Task: