bonjour a tous .
J'éspère avoir posté au bon endroit car ce forum est si grand et je suis un peu perdu la dedans . désolé aussi pour les fautes ,je suis pas fr mais pt et je ne suis pas un pro en informatique , mais je me débrouille.
toujours un erreur d'image
alors chez multimania.fr j'ai tésté avec gif et pngl'image http://speedline.cfun.fr/avatar/avatar.php.png )ne peut etre affichée car elle contient des erreurs
dossier gif
http://speedline.cfun.fr/avatar/
dossier avatar
http://speedline.cfun.fr/avatar/
vous pouvez tester les php dedans
pour 3 images j'avais utilisé ce code
j'ai testé avec avatar. php , avec avatar.php.png et avatar.php.jpg
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 <?php $liste = array("avatar1.png", "avatar2.png", "avatar3.png"); $hasard = mt_rand(0, 2); header("location: http://speedline.cfun.fr/avatar/".$liste[$hasard]); ?>
et aussi plusieurs codes différents
j'ai même essayé son code avec 13 images au même format etc
mais toujours le même erreur d'image pour le php
sinon les images on les vois bien sauf l'aléatoire , et c'est ca que j'ai besoin .
donc je pensé que c'est du au site et suis partie la
http://cyberquebec.ca/
j'ai utilisé 13 images aux même dimensions pour tester
mon dossier avatar , mais on ne le vois pas ( mais ya 13 images dedans)
http://cyberquebec.ca/speedlinept/avatar/
mais j'ai toujours le même problème pour le avatar.php ou avatar.php.png etc
je ne sais plus quoi fairel'image http://etc etc etc . )ne peut être affichée car elle contient des erreurs
J'ai aussi essayé ce code :
mais la je crois que le header location n'est pas bien aussi .
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 <?php header('Cache-Control: no-cache'); $imgs = array( 'http://cyberquebec.ca/speedlinept/avatar/avatar1.png', 'http://cyberquebec.ca/speedlinept/avatar/avatar2.png', 'http://cyberquebec.ca/speedlinept/avatar/avatar3.png', 'http://cyberquebec.ca/speedlinept/avatar/avatar4.png', 'http://cyberquebec.ca/speedlinept/avatar/avatar5.png', 'http://cyberquebec.ca/speedlinept/avatar/avatar6.png', 'http://cyberquebec.ca/speedlinept/avatar/avatar7.png', 'http://cyberquebec.ca/speedlinept/avatar/avatar8.png', 'http://cyberquebec.ca/speedlinept/avatar/avatar9.png', 'http://cyberquebec.ca/speedlinept/avatar/avatar10.png', 'http://cyberquebec.ca/speedlinept/avatar/avatar11.png', 'http://cyberquebec.ca/speedlinept/avatar/avatar12.png', 'http://cyberquebec.ca/speedlinept/avatar/avatar13.png' ); $img_id = mt_rand(0,(count($imgs)-1)); header('Location: http://cyberquebec.ca/speedlinept/avatar/ '.$imgs[$img_id]); ?>
mais j'ai ces fichiers dedans
aleatoire.php
avatar.php
avatar.php.png
bref je n'arrives pas !
portant chez multimania
j'ai le FTP ou Web FTP ( très pratique )
Base de données speedline_db
j'ai le choix php4 ou 5 , j'ai activé le php4u et aussi activer la dc
je veux juste créer un php qui marche pour des avatars ou signatures
ps: pour les images j'ai http imagehacks etc , si je me suis inscrit dans ses sites , c'est pour le php et pas pour les images .
fonction désactiver du site ?
faut 'il de html code ?
de l'aide svp
thx
Partager