Install PHP5.6 Under Windows Server 2012 IIS 8

I think this may help you;

http://php.net/manual/en/install.windows.iis7.php

The process is:

A  – Download the latest zip distribution for windows from http://windows.php.net/download/

B – Unzip the archive under c:Php

C – Update your php.ini file: – Configure CGI- and FastCGI settings in your php.ini such as

Fastcgi.impersonate = 1
fastcgi.logging = 0
cgi.fix_pathinfo = 1
cgi.force_redirect = 0

D - Then in Windows type inetmgr into run under the start menu.

E – Select the server node in the window that opens which is in the connections tree.

1

F – In the central pane, known as the features view, openthe Handler Mappings feature.

2 - Copy

F1 – In the actions pane click **Add Module Mapping…”

G – Use these details to fill in the blanks;

Request path: *.php
Module: FastCgiModule
Executable: C:[path to php install]php-cgi.exe
Name: PHP_via_FastCGI
1 - Copy

G2 – Click request restrictions and then configure the mapping to invoke handler only if request is mapped to a file or folder.

G3 – Click okay on all dialogues to save the config.

You should restart IIS once you’re done.

 

PS: If you encounter the following error:

The program can’t start because MSVCR110.dll is missing from your computer. Try reinstalling the problem to fix this problem.

you will need VS C++ 2012 (not 2010 as advertised). Go here: http://www.microsoft.com/en-us/download/details.aspx?id=30679

You need to download the x86 version (if you install the 64bit version it will give the same error)

How to send Push Notifications using PHP / Google Android

Google Cloud Messaging (GCM) for Android is a service that allows you to send data from your server to your users’ Android-powered device, and also to receive messages from devices on the same connection. The GCM service handles all aspects of queueing of messages and delivery to the target Android application running on the target device, and it is completely free.

The only thing you will need is a Google_Api_key:

To create a Google API project:

  1. Open the Google Developers Console.
  2. If you haven’t created an API project yet, click Create Project.
  3. Supply a project name and click Create.Once the project has been created, a page appears that displays your project ID and project number. For example, Project Number: 670330094152.
  4. Copy down your project number. You will use it later on as the GCM sender ID.

To obtain an API key:

  1. In the sidebar on the left, select APIs & auth > Credentials.
  2. Under Public API access, click Create new key.
  3. In the Create a new key dialog, click Server key.
  4. In the resulting configuration dialog, supply your server’s IP address. For testing purposes, you can use0.0.0.0/0.
  5. Click Create.
  6. In the refreshed page, copy the API key. You will need the API key later on to perform authentication in your app server.

Continue reading “How to send Push Notifications using PHP / Google Android”