PHP doesn't execute .php files but rather opens the so urce code file
| From: | ScottRHamilton at web dot de | Date: | Sun, 22 Nov 2009 09:05:21 +0000 |
| Subject: | PHP doesn't execute .php files but rather opens the so urce code file | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-29716@lists.php.net to get a copy of this message | ||
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@web.de