Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

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. ftp_raw() retourne alors la réponse du serveur sous forme d'un tableau de chaînes. Aucun traitement de la réponse n'est fait et ftp_raw() ne tente pas de savoir si la commande a réussi ou échoué.

Exemple 1. Utilisation de ftp_raw() pour se logger 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 ftp_exec().

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "Manuel PHP". See Index Page for more info about Authorship and Copyright.

1999-2009 Linuxinfor.com. No rights reserved.