- How to list all the image tags
- Posted by Larry on March 26th, 2006
My /images directory on my websites always grows over the years, as I add
things, but rarely remove them. I'd like to clean out the\images directories,
leaving only those that have tags in the current website's html files. I've
seen numerous "link checker" programs, even used a couple, but those look for
anchor tags, not image tags.
Isn't there some simple program out there that will list all the images used
on a current website?
Thanks much,
Larry L
- Posted by David Cary Hart on March 26th, 2006
On Sun, 26 Mar 2006 02:58:11 GMT
noway@none.com (Larry) opined:
grep -i "<img" -r *
On windows, there is a PHP extension in pear. I'm uncertain how you
would implement that if you are on a hosted server.
--
Displayed Email Address is a SPAM TRAP
Our DNSRBL -
Eliminate Spam: http://www.TQMcube.com
Multi-RBL Check: http://www.TQMcube.com/rblcheck.php
Zombie Graphs: http://www.TQMcube.com/zombies.php
- Posted by Matt Probert on March 26th, 2006
On Sun, 26 Mar 2006 02:58:11 GMT, noway@none.com (Larry) wrote:
Try Xenu. It lists referenced and orphaned (old and forgotten) files.
http://home.snafu.de/tilman/xenulink.html
Matt
- Posted by Toby Inkster on March 26th, 2006
Larry wrote:
What I'd do is scan your log files and pull out all the image files that
have been requested in the last 4 months; deduplicate. Then move those
images into a "safe" place, and delete whatever's left.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
- Posted by Larry on March 27th, 2006
In article <44264ce0.88614296@news.ntlworld.com>, Via Usenet ONLY wrote:
Tried it, liked it, thanks Matt!
Larry L
- Posted by dingbat@codesmiths.com on March 27th, 2006
Larry wrote:
Don't use a /images directory, or if you do, just keep it for "site
furniture". Place page-specific images in the directory with the page,
and use plenty of directories to permit a well-organised structure.
There is just no reason to separate images off away from their pages,
and it causes the sort of link management trouble you're having here.
- Posted by hug on March 27th, 2006
dingbat@codesmiths.com wrote:
From this I conclude that nobody (or at least not Andy) is using a
virtual image file scheme to prevent hotlinking? Probably for reasons
of performance I'd guess. So it goes.
--
http://www.ren-prod-inc.com/hug_soft...action=contact


