Jump to content
php.lv forumi

Recommended Posts

Posted

$bilde = file_exists('celsh/uz/bildi.jpg' ) ? 'bilde.jpg' : 'nav_atrasts.jpg';

echo '<img src="', $bilde, '" alt="bilde" /.';

Posted (edited)

<?php
$bilde = file_exists('img/mapes/{map}.jpg' ) ? 'img/mapes/{map}.jpg' : 'img/off.jpg';
echo '<img src="', $bilde, '" alt="bilde" /.';
?>

Tas ir domāts CS servera monitoram, bet viņš ne vienu, ne otru neparāda, bildes ir savā vietā!

Edited by *jancis38*
×
×
  • Create New...