mam problem ze skryptem ktory mam na dwoch serwerach z czego jeden jest postawiony na linux'sie i tam dziala a drugi na SunOS i nie dziala.
Skypt ogolnie dostepny rid.php
<?php #This script has been developped by Nenad Motika [nmotika@bezveze.com] #Please feel free to use it and to contact me for any reason //read folder //sort file names in array //remove any non-images from array $tempvar=0; for ($i=0;$names[$i];$i++){ if ($ext==".jpg"||$ext==".gif"||$ext==".jpeg"||$ext==".png"){$names1[$tempvar]=$names[$i];$tempvar++;} } //random //random image from array $slika=$names1[$rand_keys[0]]; //image dimensions ?>
na serwerze:
Linux infong 2.4 #1 SMP Thu Jan 13 08:59:31 CET 2005 i686 unknown
wszystko dziala w porzadku
a na:
SunOS localhost 5.8 Generic_108528-17 sun4u
widze tylko tabletki na stronie....
jak wywolam sam skrypt to mam dodatkowe komunikaty:
Notice: Undefined variable: names in /***/rid.php on line 10
Notice: Undefined offset: 7 in /***/rid.php on line 16
plik php.ini jest raczej taki sam.
thx za wszystkie sugestie.