PHP Question - Trying to get PHP-Nuke install as main index

News and important info, general banter, and suggestions for 5punk

Moderator: Forum Moderators

Post Reply
Nickface
Ninja Pirate
Ninja Pirate
Posts: 1568
Joined: November 15th, 2004, 13:13
Location: Detroit, MI, United States
Contact:

PHP Question - Trying to get PHP-Nuke install as main index

Post by Nickface »

<strike>Ok, first off, I know absolutely nothing about PHP. On my site I have a PHP-Nuke install in a subfolder. I would really like to use the index.php file in that install as the index for the site without setting up a forward (as a forward is annoying as all fuck). I made an index.php file and put it in the main area of the site with the following code:

Code: Select all

<?php

include('http://www.nickface.org/main/index.php');

?> 
It kinda works, but all of my images that make up the page are not being displayed. It's looking for them in folders off of the main site directory rather than the /main directory. Anyone know what I can do to fix this? My google-fu is weak today. :?

It's supposed to look like http://www.nickface.org/main</strike>
Last edited by Nickface on July 25th, 2005, 15:32, edited 1 time in total.
Nickface
Ninja Pirate
Ninja Pirate
Posts: 1568
Joined: November 15th, 2004, 13:13
Location: Detroit, MI, United States
Contact:

Post by Nickface »

Nevermind, I think I got it.
Stuk
Monkey
Monkey
Posts: 232
Joined: October 27th, 2004, 19:41
Location: Cambridge
Contact:

Post by Stuk »

If you're still stuck and have a Apache server you may find the .htaccess file usefull.
Woo Elephant Yeah
Heavy
Heavy
Posts: 5433
Joined: October 10th, 2004, 17:36
Location: Bristol, UK
Contact:

Post by Woo Elephant Yeah »

Oooooh new look, and new forums.

Shame you had to lose all your old forum data.
I'm pretty sure it's possible to import the old forum database into the php nuke one, but don't ask me how, as Stoat is the code monkey
Nickface
Ninja Pirate
Ninja Pirate
Posts: 1568
Joined: November 15th, 2004, 13:13
Location: Detroit, MI, United States
Contact:

Post by Nickface »

Woo Elephant Yeah wrote:I'm pretty sure it's possible to import the old forum database into the php nuke one, but don't ask me how, as Stoat is the code monkey
Oh you definately can. But since I'm me, I clearly backed up the wrong database and lost the 2+ years of data. :roll:
Post Reply