no save
Assistance
Achat
News

Forum | webmastering
[php] récupérer le chemin du fichier
toto, le mar. 16 août 2005 à 11:54:11
Bonjour à tous,
Voilà, je voudrais récuperer le chemin d'un fichier de puis ce formulaire:
<html><head></head>
<body>
<form action="execute.php" method=post>
<input name="machin" type=file>
</form>
</body></html>
et puis d'ouvrir le fichier spécifié avec le script suivant:
<?
if (isset($_post['machin'])) $fichier=$_post['machin'];
$open=fopen($fichier);
?>

mais il y a toujours un message "Warning: fopen() expects at least 2 parameters" ...
je ne sais pas comment je peut récupérer le chemin complet du fichier choisi. est-ce avec la fonction realpath()?

y a t-il quelqu'1 qui peut m'aider ? merci beaucoup d'avance! Configuration: windows2000 sp4
Easyphp1.8


jisisv
août 05
Suivant
REPONSES
jisisv
août 05
ceddec
août 05
toto
août 05
ceddec
août 05
toto
août 05
ceddec
août 05
toto
août 05
ceddec
août 05
toto
août 05
toto
août 05
Version Web
Réalisé par RedShift
no save