Jump to content
php.lv forumi

Flash


hEiti

Recommended Posts

<?php
$images = 3; 
$path = "hedi/";
$random = rand(1,$images);
echo "<img src=$path"."$random".".jpg"." border=\'0\'>" 
?>

Šis ir mazs kodiņš kas man parada random image no foldera hedi, bet tagad man ir jautajums vieta kur parada 1.jpg/2.jpg utt vai var uztaisit ta kad vinsh rada ne .jpg bet flash failus random?

Link to comment
Share on other sites

×
×
  • Create New...