Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Fri Nov 24, 2017 3:37 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Help with thttp and ssi?
PostPosted: Wed Nov 22, 2006 8:11 pm 
Offline
Newbie

Joined: Sat Nov 11, 2006 9:16 pm
Posts: 32
Hello together,

I have already read the "http://buffalo.nas-central.org/index.php?title=Beef_up_your_second_instance_of_thttpd_with_redirects_and_Server_S ide_Includes"
for the SSi topic, but I don't really understand what to do for my problem?

I have
~/www/test/images/image.png
~/www/test/test.shtml
~/www/cgi-bin/ssi/ssi.cgi
~/www/cgi-bin/redirect/redirect.cgi

Now I want to display the modification time/date of the "image.png" in the "test.shtml"-page.

How can I do that?

Thanks


Top
   
PostPosted: Thu Nov 23, 2006 4:15 am 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
<!--#echo var="LAST_MODIFIED" --> does the trick for .shtml documents themselves; for everything else, you need a CGI script, or unrealistic redirection.


Top
   
PostPosted: Thu Nov 23, 2006 10:15 am 
Offline
Newbie

Joined: Sat Nov 11, 2006 9:16 pm
Posts: 32
@andre,

but what is wrong?

if I name the page e.g. test.shtml
then the source code is diplayed in the brower.
It seams that the code isn't interpreted by thttp (ssi).

-----
especially for my problem I want to display the modification time on the image file "image.png" in the page "test.shtml".
do I need to create a cgi for that?

thanks


Top
   
PostPosted: Thu Nov 23, 2006 12:17 pm 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
I suggest you start with the example given here.

If no index file is given, thttpd can display a detailed listing of the directory contents.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited