RE: [PHP-WIN] PHP doesn't execute .php files but rather opens the source code file

[email protected] (Venkat Raman Don)
Newsgroups php.windows
Message-ID <3FA2AD39E9964240B4E6DD4AE62E031B15129F03@TK5EX14MBXC118.redmond.corp.microsoft.com>
Hi Scott,

Can you ensure that the PHP INI directive 'short_open_tag'is set to 'On'. Details about this can be found at http://php.net/manual/en/ini.core.php. I would advise to use

<?php
//Php code
?>

This will ensure that there is no confusion among different languages using a similar notation like XML.

Thanks,
Don.

-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Sunday, November 22, 2009 1:05 AM
To: [email protected]
Subject: [PHP-WIN] PHP doesn't execute .php files but rather opens the source code file

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]




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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.