Image link generator

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
funlove818
Forum Newbie
Posts: 2
Joined: Fri Mar 21, 2003 3:22 pm

Image link generator

Post by funlove818 »

Hi everyone,
I am trying to find a script where i can generate photo links. Below is an example of what i am looking for. Thank you for your time- your help is highly appreciated!


The Generator
Image

the URL: http://www.domain.com/mypic001.jpg

Repeated Source: http://www.domain.com/mypic
Low range: 1
High range: 10
Leading zeros: 2
Suffix: sfx
File extention: jpg

The results

Image
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

with which part of the script do you have difficulties?

Just in case: This is not a write-me-that-script forum. ;)
User avatar
funlove818
Forum Newbie
Posts: 2
Joined: Fri Mar 21, 2003 3:22 pm

Post by funlove818 »

Everything
I do not have PHP skills.

I just seen someome else with the script.
If you have time please do help me.


My online friend had made this for me, but it does not have the text feild or the submit button.

I somewhat understand the codes but i am not sure how to merge it with text feild and submit buttons.

Code: Select all

function generateImageLinks($url, $suffix, $extension, $low, $high) {
    for ($i = $low; $i <= $high; $i++) &#123;
        print "&#1111;IMG]$url";
        print str_pad($i, 3, '0', STR_PAD_LEFT);
        print $suffix;
        print ".";
        print $extension . "&#1111;/IMG]\n";
    &#125;
&#125;

generateImageLinks('http://www.domain.com/mypic', 'sfx', 'jpg', 1, 10);
Post Reply