PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ftp_rawlist> <ftp_quit
Last updated: Fri, 10 Oct 2008

view this page in

ftp_raw

(PHP 5)

ftp_rawEnvoie une commande FTP brute

Description

array ftp_raw ( resource $ftp_stream , string $command )

ftp_raw() envoie la commande FTP brute command au serveur FTP identifié par ftp_stream .

Liste de paramètres

ftp_stream

L'identifiant du lien de connexion FTP.

command

La commande à exécuter.

Valeurs de retour

Retourne la réponse serveur en tant qu'un tableau de chaînes. Aucune analyse n'est faite sur la chaîne réponse, ni si ftp_raw() détermine si la commande a réussi.

Exemples

Exemple #1 Utilisation de ftp_raw() pour s'identifier sur un serveur FTP manuellement.

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

/* Ceci est la même chose que : 
   ftp_login($fp, "joeblow", "secret"); */
ftp_raw($fp"USER joeblow");
ftp_raw($fp"PASS secret");
?>

Voir aussi



add a note add a note User Contributed Notes
ftp_raw
nightwalker85 at gmail dot com
20-Apr-2005 01:32
<?
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.

ftp_rawlist> <ftp_quit
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites