Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   SSI question (http://www.greenguysboard.com/board/showthread.php?t=48081)

SheepGuy 2008-07-22 11:10 PM

SSI question
 
I'm trying to throw some ads on the inside pages of some AVS sites.
I have a directory just under the root called "include" which has the ad, which is called "streamt.htm"
Where I want to put the ad is "www.domainname.com/smutsite/members/blah.htm"

The code I'm trying to call it up with is

I've also tried

and neither work.

I know I'm probably missing something obvious, I've used SSI's a lot in the past with no problem. Any ideas as to where I'm fucking it up?

cd34 2008-07-22 11:19 PM

typically, I find that



would work better.

Are you getting the dreaded, An error has occurred processing this directive?

If so, the file could be missing, it might not be readable by the server, the path could be wrong.

If you're not getting an error, check the source to see if the command is inside the html page -- if so, you may not have SSI parsing turned on for .htm pages (many servers don't parse .htm for SSI)

AddHandler server-parsed .htm .html

If it isn't already

If you're using apache 2.x (and you should be)


SetOutputFilter INCLUDES


If you have access to the raw apache logs, you might have better luck seeing the error message if none of the above helps.

Maj. Stress 2008-07-23 12:15 AM

Sheep Guy,
I'm not 100% positive but I think the folder you are pulling the files from has to have a global alias.
I have one folder on each partition of my server that has such a folder with many sub folders that I pull all my images, movies and recip tables from.

I've never seen an ssi call with a ../ used before.

If all else fails you can probably get by with a php include using the absolute path to the file.

SheepGuy 2008-07-23 12:50 AM

Thanks guys, just tried Sparky's code and still no luck. No error messages either and I'm on an Apache server, not sure what vintage though

http://www.eastcoastsluts.com/firstt...ong/gal02.html
is the page the call is on, at the bottom.

And I've just figured out that this works on my other domains, and for the 3 or 4 sites I want to add it to on the eastcoast domain if worse comes to worse I'll just paste it in.
I'm lost when it comes to servers so I'll run it by the guy who runs mine, gotta be something on that end I would think.

Thanks again!

dunc 2008-07-23 01:57 AM

It looks like SSI isn't working either on that domain, or that file extension (.htm)

I don't think its a path problem

Time to contact the host...

cd34 2008-07-23 09:52 AM

Code:






Well, the code itself is visible when you do view source.

Appears that you're on Apache 1.3.x

so, try putting an .htaccess with:

Code:

AddHandler server-parsed .htm .html
remove the .html at the end if you don't want to parse .html files -- or, if they are perhaps parsed by php.

When you do a View Source, if you can see the SSI as a comment, it means that the server isn't parsing the page.

Its not a global alias issue, as I can access the include from your web url at http://www.eastcoastsluts.com/include/streamt.htm, so, its just a matter of getting the server to parse SSI on .htm pages. The .htaccess above should do that. You can put the line above in any of your .htaccess files as long as it is above the directory that you want things parsed. You might put it in the .htaccess at the root of your site in case you have other mod_rewrites for hotlinking protection, etc.


All times are GMT -4. The time now is 08:02 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc