-
Member
SSI woes
For starters, I'd just like to tell you I'm a newbie to SSI, CGI, and MySQL, as of today in fact. However, its been a very enlightening day. I've setup a database, which a forum is connected to and is working perfectly. But that is not why I'm confused.
I'm using this news updating script package called "NewsPro" and its very very cool, and I got everything working except one small detail, which is very interesting. Basically, I use the script and post a news message, much like I'm posting this message here, and it sends the info off to a database. Then, when I'm ready, I hit "build" and it grabs the info from the database, and compiles it into a txt file along with the necessary HTML formatting. Then in my page where I want the news to be, I've used a SSI to bring that text file in, and there's my text. So here's the deal, check out these two links. They are exactly the same, except for the fact that one is using the actual server address and the other is my virtual domain. The virtual domian won't include the SSI.
http://www232.pair.com/mason/test.shtml (This is the one that works)
http://www.goregamer.com/test.shtml
Now I remember to use relative paths instead of absolute paths in the include, as I read that URL's will not work.
I know one of you guys out there know somethin, help me out! 
Thanx in advance,
MasonX (yea yea I know it says Undertow)
-
Member
Well I got it running. Its not pretty however. It just wouldn't accept the fact that I had the txt file in a different directory while using a virtual domain, even though it is supposedly designed to handle that. I think thats a problem with my server. So anywho, I just copied all the files into the root directory so it didn't have to go to a different directory to fetch the txt file. I'd still like to know how to fix this though, because now my root directory is awfully cluttered. I pretty much knew all along that this was an option, I just wanted to go to every length I could to avoid it.
Little side note: I had a similar problem with a java applet not accepting files from a different directory, even though I supposedly had everything set right. I know SysOpt is hosted with pair, or at least they were, so maybe you guys (big kahunas :P) would know something about it?
[This message has been edited by Undertow (edited 06-11-2001).]
-
Senior Member
Which include statement are you using?
<!--#include virtual="path/text.txt"-->
or
<!--#include file="path/text.txt"-->
??
-
Member
Virtual...and thanks for responding I am now having yet another problem, the **** thing won't refresh! I put in new news and hit reload, nothing different. I've tried flushing the memory and disk cache, to no avail. I know its writing the news to the txt because I've opened it manually man times just to see, and all the news is there.
The only way I can get it to show the new news is if I edit the SSI to point to a different file, then reload the page, then change the SSI back to the original file, and only then does it show. I'll try using "file" instead of "virtual".
-
Member
Just tried "file", no dice. Interesting enough however I created another user and submitted a news under that name and it showed up. So I thought maybe if I went back under my original login and make another post that would show up too, but no
-
Senior Member
Are you behind some kind of proxy server? Your problem just seems very strange to me.
-
Member
Nope no proxy or firewall or any strange ****. And believe, the problem is very strange to me as well.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
New Security Features Planned for Firefox 4
Another Laptop Theft Exposes 21K Patients' Data
Oracle Hits to Road to Pitch Data Center Plans
Microsoft Preps Array of Windows Patches
Microsoft Nears IE9 Beta With Final Preview
Simplified Analytics Improve CRM, BI Tools
Android Passes RIM as Top Mobile OS in 2Q
VMware Updates Hyperic System Management
File Monitoring Key to Enterprise Security
LinkedIn Snaps Up SaaS Player mSpoke
|
Bookmarks