How to Build PHP 5.4 Applications with Visual Studio
Join the DZone community and get the full member experience.
Join For Freedeveloping web applications with php is cool, especially when you have the right
development tools and even with more features added in php 5.4. but each time i
left the comfort of intellisense in visual studio to develop php applications using
zend or netbeans for php, i was not always satisfied with those ides' code complete
features. thus, i decided to search for any available plugin that will provide this
feature in visual studio.
the result of my search is the php ide plugin for visual studio by jcx.software corp. the plugin installer after installtation automatically adds php code completes feature into visual studio and some php project templates. the installer can be downloaded from http://www.jcxsoftware.com/ it comes with a paid license, but you can download the software and try it for 30 days.
after a successful installation, if you try to create a new project in visual studio, you will notice that php project templates have been added to visual studio project templates dialog.
thus, you can write your php codes from visual studio with full intellisense support.
though the plugin from jcx.software comes with a web server that you can use to debug your php applications, i wanted to use xampp server or iis. but on installing xampp server it kept competing with iis on port 80, each time i developed a php application, i had to stop iis for xampp to work. so, i decided to disable xampp and configure the iis to serve php pages through cgi.
configuring iis to serve php pages could be achieved by first downloading the php 5.4 non thread safe zip file from http://windows.php.net/download and then extract the content to a folder on your computer, then a handler mapping need to be added to iis. to do this, open the iis manager by clicking the windows start menu button, then select run and type " inetmgr " and click ok.
this will open the iis manager interface. in the connections pane, at the top left side, select your server node and double click handler mapping . in the action pane, at the top right side click " add module mapping... "
this will bring a dialog box, in the request path textbox type *.php , the, then select the module dropdown box and select fastcgimodule , in the executable section, click the button to browse to the folder that contains the extracted files of the php 5.4 that you downloaded to select php-cgi.exe . . in the name textbox, you can type in any name of your choice, then click the " request restrictions " button to configure the mapping to invoke handler only if request is mapped to a file or a folder and then click ok to create the handler mapping.
thus, you can build php applications from visual studio with iis as the web server.
happy phping!!!
the result of my search is the php ide plugin for visual studio by jcx.software corp. the plugin installer after installtation automatically adds php code completes feature into visual studio and some php project templates. the installer can be downloaded from http://www.jcxsoftware.com/ it comes with a paid license, but you can download the software and try it for 30 days.
after a successful installation, if you try to create a new project in visual studio, you will notice that php project templates have been added to visual studio project templates dialog.

thus, you can write your php codes from visual studio with full intellisense support.

though the plugin from jcx.software comes with a web server that you can use to debug your php applications, i wanted to use xampp server or iis. but on installing xampp server it kept competing with iis on port 80, each time i developed a php application, i had to stop iis for xampp to work. so, i decided to disable xampp and configure the iis to serve php pages through cgi.
configuring iis to serve php pages could be achieved by first downloading the php 5.4 non thread safe zip file from http://windows.php.net/download and then extract the content to a folder on your computer, then a handler mapping need to be added to iis. to do this, open the iis manager by clicking the windows start menu button, then select run and type " inetmgr " and click ok.

this will open the iis manager interface. in the connections pane, at the top left side, select your server node and double click handler mapping . in the action pane, at the top right side click " add module mapping... "

this will bring a dialog box, in the request path textbox type *.php , the, then select the module dropdown box and select fastcgimodule , in the executable section, click the button to browse to the folder that contains the extracted files of the php 5.4 that you downloaded to select php-cgi.exe . . in the name textbox, you can type in any name of your choice, then click the " request restrictions " button to configure the mapping to invoke handler only if request is mapped to a file or a folder and then click ok to create the handler mapping.

thus, you can build php applications from visual studio with iis as the web server.
happy phping!!!
application
PHP
Build (game engine)
Published at DZone with permission of Ayobami Adewole, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments