Composition de chemin avec variables [PHP]
Fermé
malekith25
-
Modifié par malekith25 le 8/03/2012 à 12:40
doctormad Messages postés 430 Date d'inscription mercredi 28 novembre 2007 Statut Membre Dernière intervention 2 avril 2015 - 16 mars 2012 à 19:46
doctormad Messages postés 430 Date d'inscription mercredi 28 novembre 2007 Statut Membre Dernière intervention 2 avril 2015 - 16 mars 2012 à 19:46
A voir également:
- Composition de chemin avec variables [PHP]
- Alert php ✓ - Forum PHP
- Le chemin d'accès spécifié est introuvable ✓ - Forum Téléchargement
- Header php - Astuces et Solutions
- Vba range avec variable ✓ - Forum VB / VBA
- Undefined index php - Astuces et Solutions
1 réponse
doctormad
Messages postés
430
Date d'inscription
mercredi 28 novembre 2007
Statut
Membre
Dernière intervention
2 avril 2015
100
16 mars 2012 à 19:46
16 mars 2012 à 19:46
Salut,
Toujours utiliser les chemins absolus, pas les chemins relatifs :
move_uploaded_file($_FILES['fichier']['tmp_name'],realpath($target).$_FILES['fichier']['name'])
https://www.php.net/manual/fr/function.realpath.php
Toujours utiliser les chemins absolus, pas les chemins relatifs :
move_uploaded_file($_FILES['fichier']['tmp_name'],realpath($target).$_FILES['fichier']['name'])
https://www.php.net/manual/fr/function.realpath.php