PHP doesn't execute .php files but rather opens the so urce code file

[email protected]
Newsgroups php.windows
Organization http://freemail.web.de/
Message-ID <[email protected]>
Hello,

this is a newbee question, so my apologies if it is too bone-headed.

When double chicking .php files  in the browser the php file does not execute but  rather the source code
file in the browser is opened which I'm sure is not what is suppose to happen.

For example, if I type http://localhost/amfphp/services/HelloWorld.php the following simply gets displayed:

<?
class HelloWorld
{
    function HelloWorld()
    {
        $this->methodTable = array
        (
            "say" => array
            (
                "access" => "remote",
                "description" => "Pings back a message"
            )
        );
    }
 
    function say($sMessage)
    {
        return 'You said: ' . $sMessage;
    }
}
?>

Scott Hamilton
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.