|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-05-29 11:34 UTC] thies at cvs dot php dot net
[1999-05-29 11:41 UTC] thies at cvs dot php dot net
[1999-05-29 11:42 UTC] thies at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 10:00:01 2025 UTC |
Works everywhere else. (ie. linux, solaris). # oslevel 4.2.1.0 # ./configure --with-oracle=/oracle-home good to go # make # cat > test.html <HTML> <?php putenv("ORACLE_HOME=/oracle-home"); putenv("ORACLE_OWNER=oracle"); putenv("ORACLE_SID=testsec8"); $handle = ora_logon("testing@testsec8","testing"); $cursor = ora_open($handle); ora_commitoff($handle); $query = "select table_name from all_tables"; ora_parse($cursor,$query) or die; ora_exec($cursor); while(ora_fetch($cursor)) { $numcols = ora_numcols($cursor); for ($column=0;$column < $numcols;$column++) { $data = trim(ora_getcolumn($cursor, $column)); if($data == "") $data = "NULL"; echo "$data\t"; } echo "<BR>\n"; } ?> </HTML> <CTRL-D> # ./php test.html Content-type: text/html <HTML> # I have tried compiling it using gcc and AIX's cc. Both produce the same results. Also when using dbx... # dbx php (dbx) run test.html Content-type: text/html <HTML> execution completed (exit code 6) (dbx) Obviously it is choking somewhere on the oracle code. However, all the cdemo files compile and run, etc. I am justing looking for a little help as to why it is not working. If I make php as an apache module, I get a "No data given" error from netscape. Further... # telnet localhost 80 Connected.... GET /test.html HTTP/1.0 Connection closed. I am not sure what to make of it. Also, just an FYI. The perl DBD::Oracle produces a core dump on similar code. If there is a simple fix let me know. These things work everywhere else but AIX. Just wondering if anybody has run into them.