website logo
Auteur
avatar
simaxe

Forum » » Le coin des codeurs » » Problème de connection ftp en php...


Posté : 2 juin 2003 à 12:48 icone du post

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
https://www.npds.org/viewtopic.php?topic=5811&forum=5