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


  •  
     
     
    ftp_site

    ftp_site

    (PHP 3>= 3_0_15, PHP 4 )

    ftp_site __ Sends a SITE command to the server

    Description

    bool ftp_site ( resource ftp_stream, string cmd)

    ftp_site() sends the command specified by cmd to the FTP server_ SITE commands are not standardized, and vary from server to server_ They are useful for handling such things as file permissions and group membership_

    Ejemplo 1_ Sending a SITE command to an ftp server

    <?php
    /* Connect to FTP server */
    $conn = ftp_connect('ftp_example_com');
    if (!$conn) die('Unable to connect to ftp_example_com');
    
    /* Login as "user" with password "pass" */
    if (!ftp_login($conn, 'user', 'pass')) die('Error logging into ftp_example_com');
    
    /* Issue: "SITE CHMOD 0600 /home/user/privatefile" command to ftp server */
    if (ftp_site($conn, 'CHMOD 0600 /home/user/privatefile')) {
       echo "Command executed successfully_\n";
    } else {
       die('Command failed_');
    }
    ?>

    Devuelve TRUE si todo se llevó a cabo correctamente, FALSE en caso de fallo_

    See Also: ftp_raw()

     
       



    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