probleme recuperation image
Posté : 24 mai 2007, 14:13
bonjour
je ne conprend pas pourquoi ca ne marche pas il me repond
The requested URL /envoi recp base image/tansfert.php was not found on this server.
alors que le fichier php je l'ai intitule transfert.php
je ne conprend pas pourquoi ca ne marche pas il me repond
The requested URL /envoi recp base image/tansfert.php was not found on this server.
alors que le fichier php je l'ai intitule transfert.php
<html>
<head>
<title>Stock d'images</title>
</head>
<body>
<h3>Envoi d'une image</h3>
<form enctype="multipart/form-data" action="tansfert.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="250000" />
<input type="file" name="fic" size=50 />
<input type="submit" value="Envoyer" />
</form>
</body>
</html>
<?
function transfert ()
{
$ret = false;
$img_blob = '';
$img_taille = 0;
$img_type = '';
$img_nom = '';
$taille_max = 250000;
$ret = is_uploaded_file ($_FILES['fic']['tmp_name']);
if ( !$ret )
{
echo "Problème de transfert";
return false;
}
else
{
// Le fichier a bien été reçu
$img_taille = $_FILES['fic']['size'];
if ( $img_taille > $taille_max )
{
echo "Trop gros !";
return false;
}
$img_type = $_FILES['fic']['type'];
$img_nom = $_FILES['fic']['name'];
}
}
?>