Page 1 of 1

Image link generator

Posted: Fri Mar 21, 2003 3:22 pm
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

Posted: Fri Mar 21, 2003 7:51 pm
by volka
with which part of the script do you have difficulties?

Just in case: This is not a write-me-that-script forum. ;)

Posted: Fri Mar 21, 2003 8:18 pm
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);