[Previo por Fecha] [Siguiente por Fecha] [Previo por Hilo] [Siguiente por Hilo]

[Hilos de Discusión] [Fecha] [Tema] [Autor]

[Sop.Tec.LinuxPPP] fwd:[Ayuda] php apache oracle9



------- Mensaje original ------
to: 
cc: 
date: 8/5/2003 4:21:08 PM
subject: fwd:[Ayuda] php apache oracle9



> Hola lista,

> 
>      Tengo problemas conectando Apache 1.3.27  con PHP 4.2.3  y Oracle 9.2.0.1.0 sobre Linux.   mi codigo fuente es :

> 
> <?php

> 
> // this oracle env var could be the cause of all the problems with horde...

>  putenv("ORACLE_HOME=/u01/oracle/product/9.2.0.1.0");

> 
> $db = "(DESCRIPTION =

>     (ADDRESS_LIST =

>       (ADDRESS = (PROTOCOL = TCP)(HOST =               myserver.com)(PORT = 1521))

>     )

>     (CONNECT_DATA =

>       (SERVICE_NAME = horde)

>     )

>    )";

> 
> $c1 = ocilogon("hordemanager","impguy",$db);

> 
> if ($c1 == false){

>    echo OCIError($c1)."";

>    echo "unsuccessful connection, aborting process.";

> } else {

>    echo "success";

> }

> 
> $parsed = ociparse($c1, "select * from testing");

> 
> if($error=OCIError($c1)){

>    echo "impossible to execute statement";

> }

> 
> // The program dies here!!!

> ociexecute($parsed);

> 
> $nrows = ocifetchstatement($parsed,$results);

> 
> echo $nrows."- recovered from the db";

> 
> echo "<html>";

> 
> for($i = 0; $i < $nrows; $i  ) {

>    echo "<br>row number".$i." --- ".$resutls['onlythisone'];

> }

> echo "</html>";

> 
> ?> 
> 
>      todo parece estar correcto pero desafortunadamente muere cuando intento invocar ociexecute  con un segmentation fault (11) de apache.  he revisado varios documentos en internet y he seguido todas las recomendaciones, me logro conectar a la base de datos pero no recuperar el numero de renglones ni los registros  que resultan de esta query. Alguien tiene alguna experiencia similar ?

> 
> Gracias.

> 
> Claudio Santana.

> 
> 
> _________________________________________________________

> http://www.latinmail.com.  Gratuito, latino y en español.

> 
> _______________________________________________

> Ayuda mailing list

> Ayuda en linux org mx

> Para salir de la lista: http://mail.linux.org.mx/mailman/listinfo/ayuda/

>


_________________________________________________________
http://www.latinmail.com.  Gratuito, latino y en español.

-- 
Lista de soporte de LinuxPPP
Dirección email: Linux en linuxppp com
Dirección web: http://mail.linuxppp.com/mailman/listinfo/linux
Reglas de la lista: http://linuxppp.net/reglas.html



[Hilos de Discusión] [Fecha] [Tema] [Autor]