i think the problem is there is a newline between the "<img src="/szukaj/images/i" and "<? ".
try write them in the same line may be a solution. "Adam I Agnieszka Gasiorowski Fnord" <[EMAIL PROTECTED]> ??????:[EMAIL PROTECTED] > > I want to choose a file at random from a > directory which adheres to certain naming scheme. > I can't get it to work. It's probably something > simple...Here is a relevant snippet: > > <img src="/szukaj/images/i > <? > chdir('./szukaj/images/'); > echo mt_rand(0, count(glob('i*.gif', GLOB_NOSORT)) - 1); > ?> > .gif" width="120" height="151" alt="" > title="PropaGanda" border="0" /> > > (the files are all called i??.gif and > located in a directory /images/, which is a > subdirectory of directory where the script > is located (/szukaj/)). > > Can you help? > > -- > Seks, seksić, seksolatki... news:pl.soc.seks.moderowana > http://hyperreal.info / ALinkA / bOrk! * WiNoNa ) ( > http://szatanowskie-ladacznice.0-700.pl foReVeR( * ) > Poznaj jej zwiewne kształty... http://www.opera.com 007 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php