0

我正在使用 php 和 IIS 7.5。错误的其他细节:

Module  FastCgiModule
Notification    ExecuteRequestHandler
Handler PHP_via_FastCGI
Error Code  0x00000000
Requested URL   http://localhost:80/example.php
Physical Path   C:\inetpub\wwwroot\example.php
Logon Method    Anonymous
Logon User  Anonymous

example.php 有以下代码:

<?php
class Persons {
    function say_hello() {
    echo "Hello my name is Sithelo Ngwenya. <br/>"
    }
}
$person = new Persons();
echo get_class($person) . "<br/>";

?>

如何修复错误?

4

1 回答 1

1

echo "Hello my name is Sithelo. <br/>"在您的功能中缺少一个;.

于 2012-08-01T09:42:49.927 回答