PDA

View Full Version : Okay Brian I need help..again! Big Time!


DarknessDivine
06-09-2004, 11:13 PM
Okay I know you don't wanna hear this BUT I moved my forums and cmps to another host/server. Now I loaded everything the same as I should and had my database restored to the new place. My forums show up great but my cmps won't :( . I know it has something to do with the chdir thing again. I ran the info.php and found th servers path and placed it there but I keep getting this error?
Parse error: parse error, unexpected '/' in /home/madmadd/public_html/cmps_index.php on line 27
So what did I do now? :confused: :confused:
Sorry to bug ya,
D.Divine ;)

Alex@i-Club
06-09-2004, 11:44 PM
What is on the line 27 of your cmps_index.php?

Our Sponsors
 

DarknessDivine
06-09-2004, 11:48 PM
Okay I got rid of that error to now get these:

Warning: main(./home/madmadd/public_html/forum/global.php): failed to open stream: No such file or directory in /home/madmadd/public_html/cmps_index.php on line 27

Fatal error: main(): Failed opening required './home/madmadd/public_html/forum/global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/madmadd/public_html/cmps_index.php on line 27
And here is what is in my cmps_index
<?php
// ++=========================================================================++
// || vBadvanced CMPS v1.0 RC2 ||
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved ||
// || This file may not be redistributed in whole or significant part. ||
// || http://vbadvanced.com ||
// ++ ========================================================================++

error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);

// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================

chdir('/home/madmadd/public_html/forum');



// ============================================
// No Further Editing Necessary!
// ============================================

require_once('./home/madmadd/public_html/forum/global.php');

print_portal_output($home);

?>
Go figure?

DarknessDivine
06-09-2004, 11:49 PM
wonder if i should remove the public_html and try that?

Our Sponsors
 

ogetbilo
06-10-2004, 01:10 PM
this

require_once('./home/madmadd/public_html/forum/global.php');

should be without a dot, like that

require_once('/home/madmadd/public_html/forum/global.php');

or like
require_once('./global.php');

Brian
06-10-2004, 01:26 PM
Actually, this:

require_once('./home/madmadd/public_html/forum/global.php');

Should be this:

require_once('./global.php');

The script switches to the forums directory with the chdir line, so there's no reason to put the full path on the require_once line, or any reason to even edit anything in that file other than the chdir line.

DarknessDivine
06-10-2004, 03:27 PM
Okay, Thanks..I'll try this...I edited that line Brian because when I looked at the one I had edited before it showed a URL so I justassumed I needed too..Thant's what I get..lol ;)

DarknessDivine
06-10-2004, 03:31 PM
Okay Brian..I tried that and ofcourse it worked perfectly!
Thanks yet again! :)