Upload d'images

Résolu
gloutz Messages postés 15 Date d'inscription vendredi 7 avril 2006 Statut Membre Dernière intervention 12 avril 2006 - 9 avril 2006 à 18:40
cs_Anthomicro Messages postés 9433 Date d'inscription mardi 9 octobre 2001 Statut Membre Dernière intervention 13 avril 2007 - 9 avril 2006 à 22:18
Bonjour,
J'ai une upload en PHP qui marche en Local avec Easy PHP.
lorsque je suis sur le serveur de mon hébergeur, il n'upload pas l'image apparemment il me dit que l'accés est refusé.
voici le message d'erreur:

Warning: move_uploaded_file(img/nvo_Logo_CG13.jpg): failed to open stream: Permission denied in /home/arthuro/public_html/uploadimg.php on line 109

Warning: move_uploaded_file(): Unable to move '/tmp/phpYe4xDQ' to 'img/nvo_Logo_CG13.jpg' in /home/arthuro/public_html/uploadimg.php on line 109
Erreur: Impossible de déplacer '/tmp/phpYe4xDQ' vers 'img/nvo_Logo_CG13.jpg'
Warning: imagecreatefromjpeg(img/nvo_Logo_CG13.jpg): failed to open stream: No such file or directory in /home/arthuro/public_html/uploadimg.php on line 117

Warning: imagesx(): supplied argument is not a valid Image resource in /home/arthuro/public_html/uploadimg.php on line 118

Warning: imagesy(): supplied argument is not a valid Image resource in /home/arthuro/public_html/uploadimg.php on line 119

Warning: Division by zero in /home/arthuro/public_html/uploadimg.php on line 129

Warning: imagecreatetruecolor(): Invalid image dimensions in /home/arthuro/public_html/uploadimg.php on line 132

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/arthuro/public_html/uploadimg.php on line 133

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/arthuro/public_html/uploadimg.php on line 136

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/arthuro/public_html/uploadimg.php on line 139

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/arthuro/public_html/uploadimg.php on line 140

Faut-il intégrer une fonction pour donner le password?
Je vous remercie pour votre aide

Gloutz

5 réponses

cs_Anthomicro Messages postés 9433 Date d'inscription mardi 9 octobre 2001 Statut Membre Dernière intervention 13 avril 2007 8
9 avril 2006 à 19:52
Dans ton client FTP, un clic droit sur le dossier (et les fichiers aussi au cas où), propriétés, et tu coches les cases pour les droits.

A lire : CHMOD

a +
<hr size="2" width="100%"><li>Entraide, dépannage et vulgarisation informatique : Mon site de vulgarisation informatique</li><li>Codes-php.net</li>
3
cs_Anthomicro Messages postés 9433 Date d'inscription mardi 9 octobre 2001 Statut Membre Dernière intervention 13 avril 2007 8
9 avril 2006 à 18:49
Salut,

mets tes dossiers en chmod 777.

a +

<hr size="2" width="100%"><li>Entraide, dépannage et vulgarisation informatique : Mon site de vulgarisation informatique</li><li>Codes-php.net</li>
0
gloutz Messages postés 15 Date d'inscription vendredi 7 avril 2006 Statut Membre Dernière intervention 12 avril 2006
9 avril 2006 à 18:53
okay... En fait je suis vraiment nul en php, j'aurais du aller plus en cours
donc je sais pas comment on fait pour mettre mes dossiers en chmod 777
Je vais aller fouiller sur le net pour voir mais si tu peux m'expliquer vite fait comment
on fait, c'est cool!
Merci!
Gloutz
0
gloutz Messages postés 15 Date d'inscription vendredi 7 avril 2006 Statut Membre Dernière intervention 12 avril 2006
9 avril 2006 à 19:53
ouai c'est cool j'ai trouvé!
merci beaucoup pour ton aide!

Gloutz
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
cs_Anthomicro Messages postés 9433 Date d'inscription mardi 9 octobre 2001 Statut Membre Dernière intervention 13 avril 2007 8
9 avril 2006 à 22:18
Peux-tu accepter au moins une des réponses stp afin de passer ton post en résolu ?

merci.

<hr size="2" width="100%"><li>Entraide, dépannage et vulgarisation informatique : Mon site de vulgarisation informatique</li><li>Codes-php.net</li>
0
Rejoignez-nous