Forum Moderators: open

Message Too Old, No Replies

Dreamweaver and SSI

Nead some advice

         

georgeek

3:39 pm on Oct 14, 2004 (gmt 0)

10+ Year Member



I have a .shtml file with the following line <!--#include virtual="/cgi-bin/query.cgi"--> in the page.

In Dreamweaver MX the actual content of query.cgi is displayed in Design View and Preview in Browser.

However when I upload the .shtml file to the server it works as it should.

Identical query.cgi and css files exist on the server and the PC.

Advice on where to look for a solution please because it is begining to drive me slightly mad....:)

sonjay

1:17 pm on Oct 15, 2004 (gmt 0)

10+ Year Member



Dreamweaver doesn't execute the query.cgi code -- it doesn't know what to do with it, so it displays its contents as text. Same with previewing in your browser -- unless you're running web server software on your computer, the browser doesn't know what to do with it, either, so it displays the contents of that file.

When you upload it, the server is running web server software (Apache, IIS, etc.), which parses the page and executes query.cgi.

I have Apache and php running on my computer so that such things can get executed and behave properly during development. But Dreamweaver still won't know what to do with it -- that's just something you'll have to get used to.

This is all expected behavior and nothing to be alarmed about.