As Mark Baker said in the comments (and I'll delete this if he posts first), your code is:
code require_once();
First and foremost code
is not PHP. This should be require_once
and you can see this in the PHP Manual. Secondly, require_once
is a language construct. It's not a function call, so you don't need the ()
. You should have:
require_once 'nusoap.php';
The syntax error is telling you exactly what line the problem is on, so read it and google that bit of code to see how others are doing it and where you are going wrong in the future.
Now your issue is on line 8:
$server----->configureWSDL
This is not valid PHP either, unless you've heavily modifed the source code of the language, which you haven't. Change this to:
$server->configureWSDL()
That's how you call methods on objects. You should be reading the manual on Objects to see how this works.