Ik heb wat foto's die in een php pagian weergegeven worden.
Nu wil ik dat als de foto bijv. hoger is dan 800 of breder dan 900 de hoogte 700 laten zijn.
Dus.....
<?
If width > 900 or height > 800 {
echo '<img border="0" scr=foto.jpg" height="700">';
}
else
{
echo '<img border="0" scr=foto.jpg">';
}
?>
Maar dan in PHP taal en dat hij de foto ook aanpast :)
Iemand de oplossing...?
Dennis
<?
$source_x = imagesx($photo);
$source_y = imagesy($photo);
?>
Dit geeft Fatal error: Call to undefined function: imagesx() in
Ik heb PHP versie 4.3.9.9
744 views