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 che z 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:
$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 besoinau fait, mon hebergeur est PRODUWEB, au cas ou...