Hosting de Calidad
  • Inicio
  • Precios y servicios
  • F.a.q y ayudas
  • Realizar pedido
  • Webs alojadas
  • Quienes somos
  • Foro HyD
  • Contacto

    Zona Dominios

    Entrar
    registro de dominios


    Zona Hosting

    Entrar
    alojamiento web


    5 Métodos de Pago
    Tarjeta de crédito
    Domiciliación
    Transferencia
    Soporte Epagado
    Soporte Paypal

    Liberalización .es

    Ver mas
    dominios .es


  •  
     
     
    OCINewDescriptor

    OCINewDescriptor

    (PHP 3>= 3_0_7, PHP 4 )

    OCINewDescriptor __ Inicializa un nuevo descriptor vacío LOB/FILE (LOB por defecto)

    Descripción

    string OCINewDescriptor ( int connection [, int type])

    OCINewDescriptor() Reserva espacio para mantener descriptores o localizadores LOB_ Los valores válidos para el tipo type son OCI_D_FILE, OCI_D_LOB, OCI_D_ROWID_ Para descriptores LOB, los métodos load, save, y savefile están asociados con el descriptor, para BFILE sólo el método load existe_ Vea el segundo ejemplo_

    Ejemplo 1_ OCINewDescriptor

    <?php   
        /* This script is designed to be called from a HTML form_
         * It expects $user, $password, $table, $where, and $commitsize
         * to be passed in from the form_  The script then deletes
         * the selected rows using the ROWID and commits after each
         * set of $commitsize rows_ (Use with care, there is no rollback)
         */
        $conn = OCILogon($user, $password);
        $stmt = OCIParse($conn,"select rowid from $table $where");
        $rowid = OCINewDescriptor($conn,OCI_D_ROWID);
        OCIDefineByName($stmt,"ROWID",&$rowid);   
        OCIExecute($stmt);
        while ( OCIFetch($stmt) ) {      
           $nrows = OCIRowCount($stmt);
           $delete = OCIParse($conn,"delete from $table where ROWID = :rid");
           OCIBindByName($delete,":rid",&$rowid,_1,OCI_B_ROWID);
           OCIExecute($delete);      
           print "$nrows\n";
           if ( ($nrows % $commitsize) == 0 ) {
               OCICommit($conn);      
           }   
        }
        $nrows = OCIRowCount($stmt);   
        print "$nrows deleted___\n";
        OCIFreeStatement($stmt);  
        OCILogoff($conn);
    ?>
    <?php
        /* This script demonstrates file upload to LOB columns
         * The formfield used for this example looks like this
         * <form action="upload_php3" method="post" enctype="multipart/form_data">
         * <input type="file" name="lob_upload">
         * ___
         */
      if(!isset($lob_upload) || $lob_upload == 'none'){
    ?>
    <form action="upload_php3" method="post" enctype="multipart/form_data">
    Upload file: <input type="file" name="lob_upload"><br>
    <input type="submit" value="Upload"> _ <input type="reset">
    </form>
    <?php
      } else {
         // $lob_upload contains the temporary filename of the uploaded file
         $conn = OCILogon($user, $password);
         $lob = OCINewDescriptor($conn, OCI_D_LOB);
         $stmt = OCIParse($conn,"insert into $table (id, the_blob) 
                   values(my_seq_NEXTVAL, EMPTY_BLOB()) returning the_blob into :the_blob");
         OCIBindByName($stmt, ':the_blob', &$lob, _1, OCI_B_BLOB);
         OCIExecute($stmt);
         if($lob_>savefile($lob_upload)){
            OCICommit($conn);
            echo "Blob successfully uploaded\n";
         }else{
            echo "Couldn't upload Blob\n";
         }
         OCIFreeDescriptor($lob);
         OCIFreeStatement($stmt);
         OCILogoff($conn);
      }
    ?>
     
       



    registro de dominios | alojamiento web | hosting por publicidad

       

     

    Manual de linux Manual de apache Manual de php Manual de mysql Manual de SQL Manual del Plesk Como funciona Paypal Manual de html