Index du Forum » » Le coin des codeurs

Auteur

Problème de connection ftp en php...
simaxe
6  

  Posté : 02-06-2003 12:48

Ca ne marche toujours pas, si quelqu'un qui est sur ovh a réussi, ce serait sympa de m'indiquer ce qui cloche dans mon code.

Code:

<?
!include! ("secu.php");
!include! ("../../config.inc.php");

if ($file_name != "") {
$ftpc = ftp_connect($adr);
ftp_login($ftpc, $login, $pass);
ftp_put($ftpc,"simaxe/images/smileys/$file_name",$file,FTP_BINARY) ;
header('location: ajouter_form.php');
}
?>

Erreur:

Warning: ftp_connect() [function.ftp-connect]: php_hostconnect: connect failed in /home/simaxe/www/simaxe/admin/smileys/upload.php3 on line 1

Warning: ftp_login() expects parameter 1 to be resource, null given in /home/simaxe/www/simaxe/admin/smileys/upload.php3 on line 1

Warning: ftp_put() expects parameter 1 to be resource, null given in /home/simaxe/www/simaxe/admin/smileys/upload.php3 on line 1

Warning: Cannot modify header information - headers already sent by (output started at /home/simaxe/www/simaxe/admin/smileys/upload.php3:1) in /home/simaxe/www/simaxe/admin/smileys/upload.php3 on line 1

Merci d'avance...



Cet article provient de NPDS

http://www.npds.org/viewtopic.php?topic=5811&forum=5