To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.off-topic.geekOpen lugnet.off-topic.geek in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Off-Topic / Geek / 2687
2686  |  2688
Subject: 
Re: Thumbnail menu CGI script
Newsgroups: 
lugnet.off-topic.geek
Date: 
Thu, 18 Jan 2001 18:04:15 GMT
Viewed: 
170 times
  
On Thu, Jan 18, 2001 at 05:58:50PM +0000, Bram Lambrecht wrote:
I've written a perl subroutine (thanks, Paul Hartzog) which finds all the files
in a directory and returns some HTML code for thumbnails with links to those
images.  Is there a way I can modify this code so it can work with a URL
instead of a directory?  For example, so I can make thumbnail links to all the
images in my Brickshelf gallery...

no simple way - since the script assumes you have local access to the
directory...  and since there is no real way of you knowing what files are
in a directory on the webserver, unless it allows you to list them.  the
only thing you can do is write some sort of spider, that will follow all
the links on a page...  but that's a different story.

--
Dan Boger / dan@peeron.com / www.peeron.com / ICQ: 1130750
<set:157_2>:  Automatic direction changer (LEGO/SYSTEM/Trains/4.5v/Accessory Elements), '69



Message has 1 Reply:
  Re: Thumbnail menu CGI script
 
(...) If you want to use URLs to retrieve files, there is the Perl module LWP which has a "User Agent" tool. I use it to retrieve a set of web pages each week. With Brickshelf you can't get a plain list of your directory though. But you could make a (...) (24 years ago, 19-Jan-01, to lugnet.off-topic.geek)

Message is in Reply To:
  Thumbnail menu CGI script
 
I've written a perl subroutine (thanks, Paul Hartzog) which finds all the files in a directory and returns some HTML code for thumbnails with links to those images. Is there a way I can modify this code so it can work with a URL instead of a (...) (24 years ago, 18-Jan-01, to lugnet.off-topic.geek, lugnet.publish.html)

11 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR