icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old August 28th, 2005, 11:32 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Aug 2005
23 posts
Gave thanks: 0
Thanked 0 times
Server Side Includes

I use server side includes for my sidebar. When I use

<!-- # include file="side.html" -->

in the cgi file for my site search (in other words the script outputs HTML results and I want it to match the rest of my site) it just comes up blank, instead of including the file. Is there a different way youre supposed to call the file since its being used in cgi?

Hope this makes senese. Thanks.
alittle is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 29th, 2005, 9:26 AM   #2 (permalink)
*buntu - Sweeet!
Super #1
 
john's Avatar
 
Joined in Mar 2004
Lives in Missouri
1,249 posts
Gave thanks: 10
Thanked 8 times
Quote:
Originally Posted by alittle
I use server side includes for my sidebar. When I use

<!-- # include file="side.html" -->

in the cgi file for my site search (in other words the script outputs HTML results and I want it to match the rest of my site) it just comes up blank, instead of including the file. Is there a different way youre supposed to call the file since its being used in cgi?

Hope this makes senese. Thanks.

This is just a guess, but try fully qualifying the path to your include file. It could be that it can't find it since it's actually being run from cgi. Try replacing "side.html" with "www.mydomain/path-to/side.html".

It's worth a try.

John
__________________
servers: dedi - petra1.petrahosting.net, petra2.petrahosting.net

Homepage: fernau.us (on petra1)

Failure is not an option. It comes standard with all Microsoft products.

Quote:
Originally Posted by Kayla
His explanation of what I just said is far better.
john is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 29th, 2005, 9:48 AM   #3 (permalink)
Destroyer of Evil Robots
Excelling Contributor
 
tch3's Avatar
 
Joined in Oct 2003
Lives in Atlanta, GA
760 posts
Gave thanks: 17
Thanked 9 times
< !--include virtual="side.html" -->
__________________
clair
http://tch3.com
(dedicated)
tch3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 29th, 2005, 6:30 PM   #4 (permalink)
Registered User
Fresh Surpasser
 
Joined in Aug 2005
23 posts
Gave thanks: 0
Thanked 0 times
Nope none of those work. I've tried it all. I think it has something to do with it being a cgi file.
alittle is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On