Ask a Question related to PHP Development, Design and Development.
-
Peng Cheng #1
Re: counting files, choosing at random
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" <agquarx@venus.ci.uw.edu.pl>
??????:3F39FCE2.17F0BB02@venus.ci.uw.edu.pl...>
> 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
> [url]http://hyperreal.info[/url] / ALinkA / bOrk! * WiNoNa ) (
> [url]http://szatanowskie-ladacznice.0-700.pl[/url] foReVeR( * )
> Poznaj jej zwiewne kształty... [url]http://www.opera.com[/url] 007
>
Peng Cheng Guest
-
Illustrator10 Imports PSD files at Random%'s...Looks fine..
HI, I have recently switched form Illustrator 8 to 10, and also upgraded to system 10(I am also on a G4). When I place a psd file in Illustrator 10,... -
Using Math.random to go to random frames
Hello everyone. My cerebral density is preventing me from seeing the solution to this problem. I have the following code which causes the user to... -
Counting files
Hi, I have a list: file1 file2 dir1/file3 dir1/file4 dir1/subdir1/file5 dir2/file6 -
[PHP] counting files, choosing at random
On Wed, 13 Aug 2003 10:54:58 +0200, you wrote: Wrapping the glob() in the count() is just throwing away the filenames. Try something more like... -
RANDOM INCLUDE FILES
Trying to randomize display of collection of include files. e.g. <!--#include virtual="/include/nav/footer/navy_blue_footer.inc"--> but can't seem to... -
Adam I Agnieszka Gasiorowski Fnord #2
Re: [PHP] Re: counting files, choosing at random
Peng Cheng wrote:
Yes, you are right, I noticed it myself> 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.
while trying David's solution. Thanks anyway.
--
Seks, seksić, seksolatki... news:pl.soc.seks.moderowana
[url]http://hyperreal.info[/url] / ALinkA / bOrk! * WiNoNa ) (
[url]http://szatanowskie-ladacznice.0-700.pl[/url] foReVeR( * )
Poznaj jej zwiewne kształty... [url]http://www.opera.com[/url] 007
Adam I Agnieszka Gasiorowski Fnord Guest



Reply With Quote

