<?
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_raw
(PHP 5)
ftp_raw — Envoie 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");
?>
ftp_raw
nightwalker85 at gmail dot com
19-Apr-2005 04:32
19-Apr-2005 04:32
