PHP Hello World
From Resin 3.0
(Difference between revisions)
Line 8: | Line 8: | ||
===Downloading and unzipping Resin=== | ===Downloading and unzipping Resin=== | ||
− | #Navigate to | + | #Navigate to XXXwww.caucho.com/download |
#Download the latest Resin Binary for your computer. For purposes of this demo, I have downloaded the Windows .zip binary. | #Download the latest Resin Binary for your computer. For purposes of this demo, I have downloaded the Windows .zip binary. | ||
#Save the file to your desktop. | #Save the file to your desktop. | ||
Line 17: | Line 17: | ||
#Browse to the directory where you unzipped the resin download (ie: c:\resin-3.0.14) | #Browse to the directory where you unzipped the resin download (ie: c:\resin-3.0.14) | ||
#Double-click httpd.exe. At this point the resin web server should start. | #Double-click httpd.exe. At this point the resin web server should start. | ||
− | #Open your favorite browser and type in the following URL: | + | #Open your favorite browser and type in the following URL: XXX://localhost:8080 |
+ | #You will now see Resin's Default Home Page | ||
Revision as of 20:34, 14 November 2005
This short article is intended for PHP programers who are interested in trying Caucho's PHP implementation.
It is written for users of windows.
Contents |
Part I: Installing Resin
Downloading and unzipping Resin
- Navigate to XXXwww.caucho.com/download
- Download the latest Resin Binary for your computer. For purposes of this demo, I have downloaded the Windows .zip binary.
- Save the file to your desktop.
- Double click the binary and unzip the file. For purposes of this demo, I have unzipped the file to c:\resin-3.0.14
Running Resin for the first time
- Browse to the directory where you unzipped the resin download (ie: c:\resin-3.0.14)
- Double-click httpd.exe. At this point the resin web server should start.
- Open your favorite browser and type in the following URL: XXX://localhost:8080
- You will now see Resin's Default Home Page
Part II: Configuring Resin to Serve PHP Pages
Example web.xml
<web-app xmlns="http://caucho.com/ns/resin"> <servlet-mapping url-pattern="*.php" servlet-class="com.caucho.php.servlet.PhpServlet"> <init compile="false"/> </servlet-mapping> </web-app>
Example HelloWorld.php
<?php echo "Hello World"; ?>