Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Random image or random code generator
Old 02-16-2009, 02:18 PM Random image or random code generator
Average Talker

Posts: 19
Trades: 0
Ok i've looked all over the web but can't find anything that meet my needs.

First, what I need is basically a display random images with "-thumb" in the filename. The folder consists of files with "filename_001.jpg" and "filename_001-thumb.jpg". I must keep both the 001 and 001-thumb files in the same folder in order for my gallery to work.

Now I need a script that displays images with the -thumb in the filename. But this is just a part of the script i need.

What would fulfill the script that i need is

a code generator. Basically a script that generates <a href="pathto/filename_00#.jpg"><img src="pathto/filename_00#-thumb.jpg"></a>

where 00# would be generated randomly from 001 to the total files in the folder divided by 2. The result cannot be 0010, or 00100. It would have to be 010 and 100.

If no script meets my needs, I guess I can just use another gallery script.
rogerchin85 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-16-2009, 03:03 PM Re: Random image or random code generator
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
Refer to this thread: http://www.webmaster-talk.com/php-fo...b-folders.html
Similar problem I guess.
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Random image or random code generator
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.51904 seconds with 12 queries