On 06/28/2014 02:42 PM, jdd wrote:
got it :-))
Here is the script. beware to don't mix single and double quotes, it's even more picky in cgi than in html :-(. I named this script images.sh, but the extension must probably only meet the .htaccess one
#!/bin/bash
echo "Content-type: text/html" echo ""
echo '<html>' echo '<head>' echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' echo '</head>' echo '<body>'
for name in *.jpg do echo "<br />" echo '<img src='$name' height="42" >'; echo $name echo "<br />" done
echo '</body>' echo '</html>'
exit 0
my .htaccess:
Options +ExecCGI AddHandler cgi-script .cgi .pl .sh Order allow,deny Allow from all
Looks goo. I tried that I got Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. If you think this is a server error, please contact the webmaster. Error 500 localhost Apache/2.4.6 (Linux/SUSE) I have no idea why. -- /"\ \ / ASCII Ribbon Campaign X Against HTML Mail / \ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org