cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1157
Views
0
Helpful
1
Replies

Parse error: syntax error, unexpected end of file

alsaafani
Level 1
Level 1

hello everyone, 

 

I am new to devnet , i need some help with error 

Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\cucmtest1.php on line 14

here's my code. 

 

?php
$host="hostname@my.domain.com";
$username="username";
$password="password";

$client = new SoapClient("\AXLAPI.wsdl\",array('trace'=>true,'exceptions'=>true,'location'=>'https://'.$host.':8443/axl','login'=>$username,'password'=>$password,));
?>

1 Reply 1

dstaudt
Cisco Employee
Cisco Employee

The forums may not be rendering your sample code accurately, but it seems to be missing the starting angle bracket '<'..?

Here is an AXL/PHP tutorial with sample code that may be helpful: https://developer.cisco.com/docs/axl/#!php-quickstart/php-quickstart

In the likelihood that you're already following this, it may be helpful if you can provide a complete PHP project demonstrating the issue, as a .zip attachment.