Posts
414
Comments
230
Trackbacks
42
Beginning PHP On Windows 8

PHP

It is always interesting to find out what technology I will have to work with next.  One of the latest that I’ve had to learn is PHP and since I am running Windows 8 I had to get it working in that environment.  At first I tried just downloading the Apache server files and running that, but then you have to deal with possible collisions between Apache and IIS.  In the end I found out that it is easier to setup PHP for IIS.

The first thing you need to make sure that the IIS feature installed.  Then you install WinCache via the Web Platform Installer.  You will find this by searching for PHP.  This seems to install all of the PHP components but you may need to also install the PHP itself (I was only able to find the Express version in the Web Platform Installer).

image

Fortunately when it comes to PHP the concepts are familiar.  Basically it is the same style of page generation as Classic ASP with a syntax akin to C or Javascript.  The biggest difference that I found is that variables are simply denoted by using a $ and you don’t need to use a format method to insert variables into output.  The code below shows examples of these usages.

<?php
 
$companyname = "PSC Group";
echo "$companyname PHP Test <br/>";
 
?>

You can get a quick reference for PHP here.  With these couple of pieces of information you should be able to quickly get started developing PHP sites using your Windows 8 environment.

posted on Tuesday, March 26, 2013 8:14 AM Print
Comments
Gravatar
# re: Beginning PHP On Windows 8
Nick Harrison
3/26/2013 11:28 AM
I have also recently had to delve into PHP learning WordPress.

The transition from MVC to Word Press has actually been easier than I would have thought.

Given that I was also once a PERL monger, the transition has maybe been easier than most.

I have rather enjoyed learning something new.
Gravatar
# re: Beginning PHP On Windows 8
ben
7/12/2013 3:23 PM
Pls I just installed PHP 5 on my windows 8 mechine but can't run my PHP scripts. Would be greatful with any assistance on how to configure it.

Post Comment

Title *
Name *
Email
Comment *  
 

Tim Murphy

Tim is a Solutions Architect for PSC Group, LLC. He has been an IT consultant since 1999 specializing in Microsoft technologies. Along with running the Chicago Information Technology Architects Group and speaking on Microsoft and architecture topics he was also contributing author on "The Definitive Guide to the Microsoft Enterprise Library".



I review for the O'Reilly Blogger Review Program



Technorati Profile

www.flickr.com
Tag Cloud