jam Posted April 26, 2006 Report Share Posted April 26, 2006 Man ir nosacījums $bckimage = (!isset($_GET['about']))? $dir2.$file : thumb("$dir/","$file","80","80","0"); pēc tam kur vajag print to $bckimage : print $bckimage; thumb() ir funkcija, kura ņem failu $file no $dir un pēc dotajiem parametriem 80, 80, 0 resaizo un attēlo. ja tas about nav settots, tad viss strādā ok un rāda ko vajag, bet ja ir settots, tad otrais parāda viņu kā stringu "tur uz vietas", nevis tur, kur tiek echots. Kape tā? Link to comment Share on other sites More sharing options...
v3rb0 Posted April 26, 2006 Report Share Posted April 26, 2006 a' iekš thumb() varbūt echo nomaini ar return. Link to comment Share on other sites More sharing options...
jam Posted April 26, 2006 Author Report Share Posted April 26, 2006 (edited) Nee, paņēmu pa taisno kur vajadzeeja to echo uzrakstīju statement <? if(!isset($_GET['about'])){ echo $dir2.$file; } else { thumb("$dir/","$file","80","80","0");} ?> paldies un ar labu nakti... Edited April 26, 2006 by jam Link to comment Share on other sites More sharing options...
Delfins Posted April 26, 2006 Report Share Posted April 26, 2006 šajā gadījumā thumb ir procedūra nevis f-ja.. tāpēc secinājums, ka nepareiza programmas struktūra... PS: tas pirmais variants bija smukāk/pareizāk... Link to comment Share on other sites More sharing options...
Recommended Posts