Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have been trying to use xquery in php using zorba no luck at all :(
i installed the zorba Windows and copied the zorba_api.dll to the php extension directory and add this line in the php.ini
extension=zorba_api.dll
and tried the hello word example
PHP
<?php 
require_once 'Zorba/XQueryProcessor.php'; 

$xquery = new XQueryProcessor(); 

$query = <<<'XQ'
  declare variable $world external; 
  <h1>Hello {$world}</h1>
XQ; 

$xquery->importQuery($query); 

$xquery->setVariable('world', 'World!'); 

echo $xquery->execute(); 
?>

but i get this error :(
Parse error: syntax error, unexpected $end
help pleas
Posted
Updated 24-Jul-13 15:49pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900