Forum Moderators: bakedjake

Message Too Old, No Replies

displaying images with a shell script

help displaying images using a shell script

         

gordygreenawalt

3:34 pm on Apr 1, 2003 (gmt 0)

10+ Year Member



Hi everyone,

I have a problem, I'm trying to make a photo page for pictures of bands that people can search.

I have text file called database.txt
The database is set up like:
image_path:photographer:keywords

For example..
[myserver.com...] John:apple, fruit, red

I'm trying to do a search on this text file and then display the results on the screen as a table with images...having problems..

Any ideas?
Thanks.

andreasfriedrich

3:45 pm on Apr 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why not use Perl [perl.com] or PHP [php.net] or Python?

Duckula

4:07 am on Apr 2, 2003 (gmt 0)

10+ Year Member



Don't use shell scripts on the web! They're not safety checked at all and have very little sandbox capability. perl -Tw for example is much safer and allows regexps without using awk/sed, that's what you would use to solve the problem on shell scripts.

<added>I've noticed: there may be trouble, since your separator (:) is being included on a field (address); I'd suggest to redesign the format. </added>