DZone
Web Dev Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Web Dev Zone > How to Build PHP 5.4 Applications with Visual Studio

How to Build PHP 5.4 Applications with Visual Studio

Ayobami Adewole user avatar by
Ayobami Adewole
·
Jun. 29, 12 · Web Dev Zone · Interview
Like (0)
Save
Tweet
33.47K Views

Join the DZone community and get the full member experience.

Join For Free
developing 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.

php project templates

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

php 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.

windows run dialog box

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... "

php intellisense support

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.

php intellisense support

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.

Popular on DZone

  • How to Generate Fake Test Data
  • 5 Steps to Strengthen API Security
  • Modernize Legacy Code in Production: Rebuild Your Airplane Midflight Without Crashing
  • ETL, ELT, and Reverse ETL

Comments

Web Dev Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo