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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
scottrhamilton@xxxxxx




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux