Communauté Informatique NDFR.net : uploader image - Programmation Web (HTML, PHP, ASP, Java, XML, etc.)
 
uploader image
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 30-06-2003, 22:56
Magi-X's Avatar
Magi-X Magi-X is offline
Modérateur
1 Highscore
 
Join Date: 31-10-2002
Location: Bruxelles
Age: 41
Posts: 816
Send a message via MSN to Magi-X
ok cool j'ai déjà apris beaucoup, mais j'ai encore une question!

Est ce qu'il y a moyen de verifier le width et height d'une image avant que l'on l'upload ?

donc ce serais ici:

$path = "images/news_image/";
$file_size_max = 10000;
$possible_size = $file_size_max;
$possible_extensions = array ('jpg', 'jpeg', 'gif');
$count_possible_extensions = count($possible_extensions);

$file_size = $_FILES[upload][size];
$file_type = $_FILES[upload][type];
$file = basename($_FILES[upload][name]);
$ext = explode(".", $file);
$file_extension = $ext[1];
$file_name = $ext[0];

# --> ce serais sympa de savoir verifier la resolution d'ici!
$info = getimagesize("../".$_FILES['upload']['name']);

echo $info[0];
echo "<br>";
echo $info[1];


Ou bien il faut l'uploader, puis verifiez, si c trop grand alors effacer?
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[PHP] Renommer une image uploadée bastien Programmation Web (HTML, PHP, ASP, Java, XML, etc.) 20 18-02-2005 09:37
Faire une image avec Drive image sans Drive sur l'image? cedren Logiciels 4 25-01-2005 12:53
Aide avec Drive Image 7 Alexlesioux Logiciels 5 19-01-2005 20:02
probleme PowerQuest Drive Image 7.0 streets Logiciels 6 23-12-2004 23:11
image de disquette drago Logiciels 1 04-02-2004 15:19

All times are GMT +2. The time now is 01:07.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.