• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Need help with a Server Side Include

RbSX

Diamond Member
Hi guys, I'm building a site for a buddy of mine and I'm putting in a random picture generator on the front page since he is a photographer.

Now for some reason dreamweaver won't let me do a server side include in the bordered center table on this site Text

If someone could put one in and post the code on here that would be great.

the script is located in the cgi-bin/random.cgi
 
I don't get it, are you expecting dreamweaver to run a cgi script while you test? Also, what does your script output? If your list of candidate photos is static I think this would be easier done with javascript.
 
Originally posted by: kamper
I don't get it, are you expecting dreamweaver to run a cgi script while you test? Also, what does your script output? If your list of candidate photos is static I think this would be easier done with javascript.

No I don't expect dreamweaver to execute it, but when this page is uploaded to the site the script should execute, grab the picture and import it into the page, thats what SSI's do.
 
this is getting REALLY lame, I put that code in, still nothing, i am not even sure if it's executing because there is no broken picture image either.
 
i meant use the absolute path and the real cgi script name

also, change the exension of the index page to .shtml (instead of html)
SSI isn't even being parsed for html documents on the server you linked, if its enabled at all, it will most likely be enabled on .shtml files

once its a .shtml, look at the source code in the browser, if you can find the SSI code in the source, SSI isn't being parsed
 
hmm I changed it to SHTML and used the absolute path as I can determine (They don't give me the absolute path to my site on here and the support team isn't online right now.

I get [there is an error processing this directive]
 
looks like the most typical SSI configuration is different than it used to be
been about 5 years since i've used anything SSI
 
Yeah I was confused w hen you said that, it's been a few years since I've done an SSI too, but last time I didn't have to use the absolute path. 😕
 
Originally posted by: RyanSengara
Originally posted by: kamper
I don't get it, are you expecting dreamweaver to run a cgi script while you test? Also, what does your script output? If your list of candidate photos is static I think this would be easier done with javascript.

No I don't expect dreamweaver to execute it, but when this page is uploaded to the site the script should execute, grab the picture and import it into the page, thats what SSI's do.
I know what SSIs do. You just presented your problem in a rather confusing way (the webserver is what gave you problems, not Dreamweaver). Plus, you're not 'importing the picture', you're importing a bit of text that tells a browser where to find a picture. But anyway, I'm just trolling now as you have it worked out...
 
Back
Top