bonjour cher tous,
j'ai un veritable problème qui me préocupe.
j'ai un code qui fonctionne très bien quand j'utilise easyphp dans ma machine mais quand je télécharge mes fichiers chez mon hébergeur, ça ne fonctionne pas. j'ai même déja enlevé toutes les autorisations mais je n'y arrive toujours pas. je me demande bien pourquoi ce code marche correctement chez moi mais pas chez mon hébergeur!
voici le code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 $stock="PHOTO\\"; $stock2="PHOTO2\\"; if (!$_FILES['photo']['tmp_name'] or $_FILES['photo']['type']<>'image/pjpeg') {$photo="";} elseif (move_uploaded_file($_FILES['photo']['tmp_name'], $stock2.$_FILES['photo']['name'])) { $photo='terrain'.$an.$mois.$jour.$heure.$second.$nombre.'.jpg'; if(!copy($stock2.$_FILES['photo']['name'], $stock.$photo)) { echo "Copie impossible.";
merci de m'aider car j'en ai vraiment besoin
au fait, mon hebergeur est PRODUWEB, au cas ou....
Partager