PHP's Built In Server: Super Fun Basic Example

PHP's Built In Server: Super Fun Basic Example


So I'm half asleep at 8 p.m. Surfing the net and typing and
probably dreaming of inebriated ducks gleefully flapping
Poised and paddling in slanted lines across the swamp
Inside my head

Wait...

I'm sure there's something there besides a wiki link
A misplaced thought that just won't click
high on TCP. And he said "Happy 4/20", and I said "Shit,
Looks like I'm staying home."

Surprise!

I wonder how differently I'd think if I'd have gone to prison.
Doesn't matter, passing thought like every other
The bread, the butter, the

"Damn it, just get on with it already."

Time to wake up I guess. Have fun with it.

Files

"myApps\runFirstApp.bat"

cd firstApp
START "firstApp Server" ..\php-5.4.0-Win32-VC9-x86\php -S localhost:8065
firstApp.URL

"myApps\php-5.4.0-Win32-VC9-x86"

This is the unzipped VC9 x86 Thread Safe PHP 5.4.0 binary available at http://windows.php.net/download/

"myApps\firstApp\firstApp.URL"

firstApp.url is an internet shortcut to "http://localhost:8065". When PHP's built in server is running this link will open myApps\firstApp\index.php

"myApps\firstApp\index.php"

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>
        </title>
    </head>
    <body>
        <p>
            <?php echo 'hello'; ?>
            <br />
            <a href="/otherPage.php">other page</a>
        </p>
    </body>
</html>

"myApps\firstApp\otherPage.php"

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>
        </title>
    </head>
    <body>
        <p>
            <?php echo 'this is the other page'; ?>
            <br />
            <a href="/index.php">first page</a>
        </p>
    </body>
</html>