REPET:Adaptare imagine
Last Updated: Apr 11 2009 14:05, Started by
YonuTeZ
, Apr 11 2009 13:26
·
0

#1
Posted 11 April 2009 - 13:26

Este vorba de thread-ul http://forum.softped...howtopic=533255
Buna/Dimineata/Ziua/Seara cum pot adapta poza in design uitativa ce a iesit de mai bine de o ora tot ma uit http://upi.tez.ro/vi...ani_Flowers.jpg <? list($file_width, $file_height, $ext) = getimagesize($file_path.$file); if (!$ext) {echo "Can not get image dimensions!";} else { if($file_width>"500") { $width=500;} else {$width=$file_width;} } ?> Edited by YonuTeZ, 11 April 2009 - 13:35. |
#2
Posted 11 April 2009 - 14:05

adauga atributul width etichetei img in cauza, ti-am mai zis.
Se pare ca getimagesize returneaza la tine o eroare. var_dump(array($file_path,$file)), ca sa vezi daca ai construit corect calea catre fisier, verifica si cu is_readable() inainte. Si intreaba si tu pe aria corecta, PHP > Incepatori. Ce e asa greu. |
Anunturi
Bun venit pe Forumul Softpedia!
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users