Re: Bug #1172 Updated: Generates parse error
| From: | Jon Smirl | Date: | Sun, 21 Feb 1999 20:10:59 +0000 |
| Subject: | Re: Bug #1172 Updated: Generates parse error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4219@lists.php.net to get a copy of this message | ||
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@mediaone.net
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net