News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SSI.php problems

Started by Zygaun, October 30, 2008, 02:58:33 AM

Previous topic - Next topic

Zygaun

I'm super new to smf/forums in general so take it easy on me O:)
I'm trying to display the most recent forum posts on my website using SSI, but when I try to use the code
<?php require("/path/to/forum/SSI.php"); ?>
it gives me an invalid path error. How can I change the directory and how do I find the directory that it needs to be? I also wanted to link my website members with the forum, I read a few posts about bridging and that's way over my head lol.

Thanks

Dragooon

Is your website on the same server as SMF?

EDIT : And do you use that piece of code only? That is, do you enter the correct path or just leave it like that?(To see the path to your boarddir - see Admin - > Server Settings.)

Zygaun

#2
No I enter in the correct path. It's in the same server but uses a different database, not to sure if that matters.
The smf path in the server settings is set to "/home/zygaun/public_html/smf". I have no idea where the /home/zygaun part came from but the rest is correct. The path to the forums would be hxxp:www.lethalplay.com/smf. [nonactive]

EDIT: Also forgot to mention it doesn't allow me to modify the path in the server settings. Once I save, the path reverts to what it originally was.

SlammedDime

A path is a server location to a file ("/home/zygaun/public_html/smf").  A location/url, is a way to get to the file from the outside world (www.lethalplay.com/smf).

If the path to SMF is as above, then to include SSI, you would use

require_once("/home/zygaun/public_html/smf/SSI.php");
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Zygaun

Thanks a lot SlammedDime it's all working now.

Weerapat

I have a some problem too

hxxp:www.asungharimmasub.com/ [nonactive]


Advertisement: