Helpful Information
 
 
Category: vBadvanced CMPS
Unexpected / in cmps_index.php

Followed directions as described, come up with this


Parse error: parse error, unexpected '/' in /export/home/cameronorr/purposelessproductions.net/website/cmps_index.php on line 19


cmps_index.php file is as follows:


<?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
// ============================================

/export/home/cameronorr/purposelessproductions.net/website/forum


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

require_once('./global.php');

print_portal_output($home);

?>


so I try removing the leading / on the absolute path and then reload it and get the following error


Parse error: parse error, unexpected T_REQUIRE_ONCE in /export/home/cameronorr/purposelessproductions.net/website/cmps_index.php on line 26


any help?

Well, you removed the line of code that did anything and replace it with some text

chdir('/export/home/cameronorr/purposelessproductions.net/website/forum');

hahaha oops, im a newb, sorry, dont know much about php, and it said "replace line" didnt know it wasnt the whole line..... thanks :)










privacy (GDPR)