Re: what's wrong
| From: | David Newcomb | Date: | Tue, 22 Aug 2000 09:34:56 +0000 |
| Subject: | Re: what's wrong | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-2252@lists.php.net to get a copy of this message | ||
Fred,
Check the Apache error_log file this will tell you why the process
crashed which may give you a clue.
HTH,
David.
----- Original Message -----
From: Fred Cai <Fred.Cai@51job.com>
To: <php-db@lists.php.net>
Sent: Tuesday, August 22, 2000 7:54 AM
Subject: [PHP-DB] what's wrong
> pls view the code below,
> when I add the line "echo("<br>".$lob_des->load());",
> IE will inform me the msg "Server returned unrecognized info",
>
> who could told me the reason?
> thx a lot.
>
> --------------
> create table cl1(id number(5),name varchar2(10),cl CLOB);
>
> <?php
> ociinternaldebug(1);
>
> $conn=ociplogon("job_container","job_container","sun");
> $lob_des=ocinewdescriptor($conn,OCI_D_LOB);
> $stmt=ociparse($conn,"select id, name, cl from cl1");
>
> ocidefinebyname($stmt,"ID",&$rst_id);
> ocidefinebyname($stmt,"NAME",&$rst_name);
> ocidefinebyname($stmt,"CL",&$lob_des);
>
> ociexecute($stmt);
>
> while (ocifetch($stmt))
> {
> echo("<br>$rst_id");
> echo("<br>$rst_name");
> echo("<br>$lob_des");
> // echo("<br>".$lob_des->load());
> }
>
> ocifreestatement($stmt);
> ocilogoff($conn);
> ?>
>