I received this message:
Quote:
|
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/5/d158572600/htdocs/fb/broadcast/webtest/testScript.php on line 3
|
Here's the code that I have:
testScript.php PHP Code:
<?php
class A {
public function A1() {
print "TEST A1";
}
public function A2() {
print "TEST A2";
}
};
?>
test.php PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>TESTER</title>
</head>
<?php
include 'testScript.php';
print "TEST: " + A1();
?>
<body>
</body>
</html>