HighDots Forums  

EXEC Server Side Includes (SSI) in Templates

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss EXEC Server Side Includes (SSI) in Templates in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sambailey
 
Posts: n/a

Default EXEC Server Side Includes (SSI) in Templates - 03-01-2004 , 04:33 PM






Hi Forum,

Does anyone have any experience using SSI in templates, not to include a text
file, but to exec a CGI script? I am having some problems.

In my template, I can use Insert > Script Objects > Server-Side Includes and
this inserts a <!--#include> tag, and it will keep track of the file it needs
to link to, no matter where the page based on the template is stored (as with
other relative paths such as images or links etc).

But when I change this to an <!--#exec> tag, and point it at the CGI script,
it won't keep track of the file anymore, and leaves the path to the file the
same no matter where you are. I have tried using an absolute address, but this
doesn't work on the server. Anyone got any ideas?

<!--#exec cgi="../_sitemap/breadcrumb.cgi" -->

Sam


Reply With Quote
  #2  
Old   
Alan Ames
 
Posts: n/a

Default Re: EXEC Server Side Includes (SSI) in Templates - 03-01-2004 , 04:49 PM






can you use a site root relative path?

<!--#exec cgi="/_sitemap/breadcrumb.cgi" -->

Note- on some hosts- when you use a site root relative path for exec or SSI,
you may have to include your Home directory path if you have a private login
folder. Or even use the path from server root to your site.
kind of like this:

<!--#exec cgi="/my_username/httpdocs/_sitemap/breadcrumb.cgi" -->
or
<!--#exec cgi="/home/users/m/my_username/httpdocs/_sitemap/breadcrumb.cgi"
-->

if you can use a path like that- dreamweaver won't have to manage the paths
inside the exec directive.

Quote:
But when I change this to an <!--#exec> tag, and point it at the CGI script,
it won't keep track of the file anymore, and leaves the path to the file the
same no matter where you are. I have tried using an absolute address


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.