Re: [PHP-DEV] Bug #1172 Updated: Generates parse error From: Jon Smirl (jonsmirl <email protected>)
Date: 02/21/99

This version works. short_tags was needed....

<?php header("Content-type: text/xml");short_tags(false); ?>
<?xml version='1.0'?>
<procedure><![CDATA[
<?php
$db = odbc_connect("ASASample", "dba", "sql");
$recs = odbc_exec($db, "sp_helptext " . $procedure);
while (odbc_fetch_into($recs, &$rarr))
printf("%s\n", $rarr[0]);
odbc_free_result($recs);
odbc_close($db);
?>
]]></procedure>

Should the default in the ini file be switched to off now that there is xml
support in php?
short_tags is not an obvious thing for a new user to look for when their xml
doesn't work.

Thanks for the help,
Jon Smirl
jonsmirl <email protected>

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>