Sithelo
Sithelo

Reputation: 307

HTTP Error 500.0 - Internal Server Error The page cannot be displayed because an internal server error has occurred

I am using php and IIS 7.5. Other details of the error:

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 has the following code :

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

?>

How do I fix the error?

Upvotes: 0

Views: 1916

Answers (1)

KillerX
KillerX

Reputation: 1466

echo "Hello my name is Sithelo. <br/>" in you function is missing a ;.

Upvotes: 1

Related Questions