Images for ebay count files in directory

B

Bill

I have looked up and down for a solution to this problem without any
luck.
I sell stuff on ebay. ebay will allow me to place javascript in my
listings which I use to show a series of thumbnails of my item. In my
script I have a variable that defines the number of pictures of that
item.
What I would like to do is have the script determine the number of
pictures in the directory. I host the pictures on my own server and I
can turn on directory browsing, if that helps. I could also run a
server sided script to determine that number but I don't know how to
call that script from the ebay page. I'm pretty much a hack and a
beginner at programming so I need this to be a pretty basic solution.
Thanks for any help.

Bill
 
J

Joakim Braun

Bill said:
I have looked up and down for a solution to this problem without any
luck.
I sell stuff on ebay. ebay will allow me to place javascript in my
listings which I use to show a series of thumbnails of my item. In my
script I have a variable that defines the number of pictures of that
item.
What I would like to do is have the script determine the number of
pictures in the directory. I host the pictures on my own server and I
can turn on directory browsing, if that helps. I could also run a
server sided script to determine that number but I don't know how to
call that script from the ebay page. I'm pretty much a hack and a
beginner at programming so I need this to be a pretty basic solution.
Thanks for any help.

Instead, maybe the script could add an iframe to the page, then have the
page shown in the iframe generate the thumbnails server-side based on a
directory name that you provide.

Say you create an iframe and set its src to
http://www.example.com/makethumbnails.php?itemdir=somedir. The PHP file
harvests the query string, scans the somedir directory and generates a HTML
page with thumbnails for the images in that directory.

Joakim Braun
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,999
Latest member
MakersCBDGummiesReview

Latest Threads

Top