|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-02-21 15:34 UTC] jim
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 20 21:00:02 2025 UTC |
The <?xml tag generates a parse error. Shouldn't non-<?php PIs just be copied to output like HTML tags? This works ok if you print() the xml PI. <?php header("Content-Type: text/xml"); ?> <?xml version='1.0'?> <procedure><?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>