PHP4 b4 comes with instruction in the readme file for setting up under PWS:you add it as a filter, and as a script engine.Heres what I did, In short:Copy PHP4TS.dll to %SystemRoot%System32On a fresh install of Win2k the other required dll, msvcrt.dll is allreadythereand is newer so I wouldn't risk overwriting it :).Copy PHP.INI-DIST to %SystemRoot%PHP.INI--> It should work straight out of the box, if you follow the guidelinesbelow.In Internet Servicices Manager,Expand the server you want, then right click on the WWW site you want PHP towork on: you can do this for more than one site of course.>From the right click menu, choose Properties.In the window that comes up, choose the ISAPI Filters tab, click Add...In the little dialog, tell it the path to PHP4ISAPI.DLL, which will bewherever you unpacked PHP to. (this ONLY applys to version 4.0 and above.There is no ISAPI mode of v3 as far as I know).Give it the name of PHP.Once you've done that, and clicked OK, change to the tab "Home Directory",Look around the "Application Settings" label. Around that area you will seea button labelled "Configuration". Click it!In the window that pops up, click add. In the executable field, tell itwhere the PHP4ISAPI.dll file is. (if you have v3, and not v4, point it tophp.exe at this stage).Tell it what extension to use. PHP or PHTML are common. (You do NOT need the. before the extension).Verbs: All Verbs.Script Engine: Yes.Check that file exsists: Up to you, I guess. Will either let IIS generatethe 404, or PHP give users a "No Input File Specified".... I urge you chooseyes :)Click ok. You will need to repeat this step for each file extension you wantPHP to work with!You then need to completely stop IIS. You can do this by "net stop iissvc"from the command prompt (under win2k I get this by running cmd.exe).>From the command prompt type "net start w3svc".Now return to Internet Services Manager, and start each of the servicesagain.Now make a page like page.php in the root of your site (of course replacethe .php with an extension that setup to work with PHP!), and just putsomething simple like
In the file. This also tells you what you are telling every site you visit:).This is a bit more wordy than the PHP readme, but hey it worked onIIS5/WIN2k, and IIS4/WinNT4Server.| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |
More Code Examples Articles More By Patrick Quinn-Graham developerWorks - FREE Tools! | David Barnes, Lead Evangelist for IBM Emerging Internet Technologies will discuss aspects of Web 2.0 that bring value to corporations, academia, and government. He'll also discuss IBM's vision around Web 2.0, including the importance of remixability and consumability. The discussion will culminate with examples of various IBM Software Group solutions you can use to get ahead of the Web 2.0 adoption curve. FREE! Go There Now!
| | | | Download the Rational Application Developer (RAD) v7.5 open beta code and start developing applications for the JEE5 standard which features EJB3.0, JPA, JSF 1.2, JSP 2.1 and Servlet 2.5 standards. When you use this beta you will see how you can increase developer productivity for already existing applications with improved support for refactoring, as well as adding new features to existing applications. In addition, the beta provides tooling for JD Edwards, Oracle, SAP, Siebel and PeopleSoft to improve the developer productivity with these enterprise systems. FREE! Go There Now!
| | | | Visit IBM developerWorks to download a free trial version of IBM Rational Business Developer V7.1. Rational Business Developer offers rapid and simplified development of business applications and services through Enterprise Generation Language (EGL) tools, generating Java or mainframe solutions while shielding developers from technical complexities. FREE! Go There Now!
| | | | Visit IBM developerWorks to download a free trial of the Rational Host Access Transformation Services (HATS) Toolkit. The HATS toolkit provides a set of plug-ins for the IBM Rational Software Delivery Platform to help you easily extend your legacy applications. HATS makes your 3270 and 5250 applications available as HTML through the most popular Web browsers, while converting your host screens to a Web look and feel and it also enables you to develop new Web, portal, and rich-client applications. FREE! Go There Now!
| | | | XML has become a common way of storing business data as flat files and many data server vendors including IBM have provided ways to store this data within relational database systems. Increasingly collections of XML files are accessed like databases using an xQuery and other XML standard mechanisms. Businesses find the need to combine the traditional tabular structured data with XML formatted data. In this webcast, you’ll learn about IBM’s WebSphere Federation Server technology, which provides users with the ability to integrate these two data formats. FREE! Go There Now!
| | | | Informix Dynamic Server (IDS) Express Edition offers outstanding online transaction processing (OLTP) database performance, while helping to simplify and automate many of the tasks associated with deploying databases for small business applications. IDS 11 further extends the ease of management and applications integration with the Admin API and Scheduler, high availability with Continuous Log Restore for backup server recovery in case of a primary server failure, and column level encryption to protect personal and company private data. FREE! Go There Now!
| | | | Get a free trial download of IBM Lotus Forms V3.0 (formerly Workplace Forms), which provides a zero-footprint eForms solution to help you automate and move forms-based business processes off the desktop and onto the Web. With Lotus Forms, you can extend applications beyond the firewall by creating a single electronic form document ready for use in both thick and Web 2.0 thin client format. FREE! Go There Now!
| | | | Get a free trial download of the latest version of IBM Rational Functional Tester V7.0.1. Rational Functional Tester is an automated functional and regression testing solution for QA teams concerned with the quality of their Java, Microsoft Visual Studio .NET, and Web-based applications. FREE! Go There Now!
| | | | Join this Rational Talks to You teleconference, to hear how Enterprise Generation Language (EGL) eliminates the need for tedious and error-prone low level coding, so developers can focus on business requirements. EGL extends the Rational software development platform with a simplified programming language that enables developers who have little or no experience with Java, Web technologies or Service Oriented Architecture, to create enterprise-class applications and services quickly and easily. It also allows developers who may have little or no mainframe programming experience to quickly create traditional mainframe components. FREE! Go There Now!
| | | | The unprecedented scope of a service-oriented architecture (SOA) initiative brings to the forefront a number of management and governance issues that were sidestepped in the past. The key to a successful SOA implementation is managing and governing activities throughout the entire SOA delivery lifecycle by ensuring that services conform to the needs of all of the business’s stakeholders. Learn how service lifecycle management allows the business to ensure that the process by which services are defined, created, tested, deployed, optimized and retired is manageable, repeatable and auditable. FREE! Go There Now!
| | | | All FREE IBM® developerWorks Tools! | |