Skip to main content

Configure/Install PHP on IIS windows

Step 1 - Download Php from http://www.php.net/downloads.php

In order to configure or install PHP on IIS, copy the php.ini file from the php directory to the windows directory. If there are any changes in the "PHP.ini" file.make sure the  copies of "PHP.ini" in windows and PHP folder are synchronized.

Step 2 -  Goto IIS , Right click on the default website, select properties



Step-3: Click on configuration Button,Goto Mapping Tab, Click on Add button and add the same as given in screenshot



Step 4:-  Click on and then Close the IIS.

Step 5:- Right Click on My Computer>>Select properties>>advance Tab>>select Environment variables
Step 6:- Select Path from system variable and then add the path  to the PHP directory, Add a semicolon and then paste the path in variable value
Step 7:- Add a New variable called PHPRC and give the variable value as path of php directory
Step 8: - Create a file at the root of IIS and name it info.php and write
phpinfo();?>

   into it save it and close
Step 9 :- Call the file  from the iis you will get a list  like this


, now here is you PHP configured
Check the  best link for php installation on windows 

Comments

Popular posts from this blog

Static Keyword in C#, unleashing Static keyword in C#

What is Static keyword in C# “Static” keyword can be used for declaring a static member . The keyword Static can be applied to the Classes, field, method, properties, operator, event and constructors. Methods and variable  which we use as static doesn't need an instance to be created of a class. Example of static keyword class testclass {     public static int statint;     public static void squareroot(); } we can call the above static method and variable without creating the instance of the class How to call a static method  testclass.squareroot(); apart from this the static method can use only the static variables of same class.

string is null or empty(String.IsNullOrEmpty)

You can check for the strings in the code, There are many things which  you have to consider before you use a string. Declare the string variable and assign it if (String.IsNullOrEmpty(StringVariable)) {   return "is null or empty" ; else return String.Format( "(\"{0}\") is neither null nor empty" , s); } This will check if the string is null or empty and will return a boolean response.

Usage of Ternary Operator

You can optimize the code by using the ternary operator, pass a parameter to this function it will compare the salary with the given value and if the condition satisfied It will print the value before the colon and if not satisfied it will print the value after colon. Ternary Operator (?:) condition ? condition satisfied : Condition not satisfied string TernaryOperatorUsage(int Salary) {     return salary >= 5000 ? "Congratulations! You are eligible for a pay hike." :                        "Sorry! You're not eligible for a pay hike."; } The above example illustrates the use of ternary operator in your code.