PHP 7.2.0 Release Candidate 4 Released

ftp_raw

(PHP 5, PHP 7)

ftp_rawEnvía un comando arbitrario a un servidor FTP

Descripción

array ftp_raw ( resource $ftp_stream , string $command )

Envía un command arbitrario al servidor FTP.

Parámetros

ftp_stream

El identificador de enlace de la conexión FTP.

command

El comando a ejecutar.

Valores devueltos

Devuelve la respuesta del servidor como una matriz de cadenas. No se realiza procesamiento alguno con la cadena de respuesta, ni ftp_raw() determina si el comando tuvo éxito.

Ejemplos

Ejemplo #1 Uso de ftp_raw() para iniciar sesión en un servidor FTP de forma manual.

<?php
$fp 
ftp_connect("ftp.example.com");

/* Esto es lo mismo que: 
ftp_login($fp, "joeblow", "secreto"); */
ftp_raw($fp"USER joeblow");
ftp_raw($fp"PASS secreto");
?>

Ver también

  • ftp_exec() - Solicita la ejecución de un comando en el servidor FTP

add a note add a note

User Contributed Notes 3 notes

up
3
nightwalker85 at gmail dot com
12 years ago
<?
ftp_raw
($ftpconn,"CLNT <client>");
?>

Is a good way to let the ftp-server know which client it's dealing with. Guess this can be useful if you're making a homemade ftp-client. Only do this if the ftp-server has responded to FEAT command with a response including CLNT.
up
0
WebSee.ru
8 years ago
How to realize the possibility of transferring data from one FTP-server to another viate.]W-y1class="user">// idn>"CLNT <client&=sss="string">"CLNT &ls="keywor<?
ftp_raw
(>$ftpcsss="string">"CLNT &ls="keywo'an>V'ss="string">"CLNT <client>"<?
ftp_raw
<?
ftp[raw
<?
ftp]) ==sss="string">"CLNT &ls="keywor227ss="string">"CLNT <client&g {a""CLNT &ls="keywor<?
ftp_raw
(>$ftpcsss="string">"CLNT &ls="keywo'aORT 'ss="string">"CLNT <client&.raw<?
ftp_raw
<?
ftp[raw
<?
ftp]csss="string">"CLNT &ls="keywordnsss="string">"CLNT <client&=sss="string">"CLNT &ls="keywors="posn/ss="default"><?
ftp_raw
<?
ftp[raw
<?
ftp]csss="string">"CLNT &ls="keywo'('ss="string">"CLNT <client&g +sss="string">"CLNT &ls="keywor1an>$ftpcsss="string">"CLNT &ls="keywors="posn/ss="default"><?
ftp_raw
<?
ftp[raw
<?
ftp]csss="string">"CLNT &ls="keywo')'ss="string">"CLNT <client&csss="string">"CLNT &ls="keywordnss="string">"CLNT <client&g -sss="string">"CLNT &ls="keywordnss="string">"CLNT <client&ggt;""CLNT &ls="keywor<?
ftp_raw
(>$ftpcsss="string">"CLNT &ls="keywo'STOR 'ss="string">"CLNT <client&.raw"CLNT <client>sss="string">"CLNT &l )
// nel/en/yu"CLNT &ls="keywor<?
ftp_raw
(>$ftpcsss="string">"CLNT &ls="keywo'RETR 'ss="string">"CLNT <client&.raw"CLNT <client>a");
?>ing CLNT.
86839iv>
<86839f="/manual/vote-note.php?id=92832&page=function.ftp-raw&vote=up" title="Vote up!" class="usernotes-voteu">86839iv
<86839f="/manual/vote-note.php?id=92832&page=function.ftp-raw&vote=down" title="Vote down!" class="usernotes-voted">down 086839iediv>
nightwalker85 at gmail dot comclass="genanchor" href="#92832"> ¶a><1-05 06class="date" title="2009-08-10 11:38">8 years ago
ntaiual/ey illegal/eational.psuchen/s\n, \r, \t, orng a h/vote-no willp> <?
ftp_raw
"CLNT <client&csss="string">"CLNT &ls="keywor="kmlass="default"><?
ftp_raw
"CLNT <client&ggt ;");
?>ing CLNT.
add a noterf="http://fr>
  • Get Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> alue="ction"32"> &pa​ov classa​ov clanontes/func =/get-involv tam ed" >Get Invo tam ="member">ction"32"> &pssnontes/func =/get-involv tam ed" >Get Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &p 5, erm=es/func =/get-involv tam ed" >Get In
    g svo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> alue="ction"32"> &pa​ov classa​ov claerm=es/func =/get-involv tam ed" >Get Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member"> &pGet Invo tam ="member">Funcione tam =/get-involv tam '>Funcioneermseculi> gting CL med class= xt/h footerernotes-voted">dow">ntaiuer footer"clearfix"> notes-voted">dowrow-fluidx"> notesién foot ntacap://frContacaerm==/get-involv lbook.ftp.ph"/sites Funcione 0BB">?> selecoterer dd.cod med ref=rnal an>ethirn/conty lib="paes xt/h ">