PDA


View Full Version : Syntax Error


yourwar
01-24-2006, 03:21 PM
after i install it i can login into my control panel it's working fine but when i open index.php it show me error " PHP Parse error: syntax error, unexpected '/' in DRIVE:\my board link\index.php on line 33 "

any idea ? :)

I am having the same problem but my code is setup with the correct '/' not '\'. Please Help.

Here is my error message:
Parse error: syntax error, unexpected '/' in /home/yourwar/public_html/index.php on line 33

Here is my index.php code:
<?php
// ++=========================================================================++
// || vBadvanced CMPS v2.0.0 (vB 3.5) - 26284
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 23:54, Mon Jan 23rd 2006
// ||
// ++ ========================================================================++

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

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

chdir('/home/~yourwar/public_html/forums);

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

$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();

require_once('./global.php');

print_portal_output($home);

?>

Brian
01-24-2006, 04:22 PM
Try this for your path. ;)

chdir('/home/~yourwar/public_html/forums');

yourwar
01-24-2006, 08:09 PM
Ok, I did that and now I'm getting these errors:


Warning: chdir(): No such file or directory (errno 2) in /home/yourwar/public_html/index.php on line 22

Warning: main(./global.php): failed to open stream: No such file or directory in /home/yourwar/public_html/index.php on line 33

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/yourwar/public_html/index.php on line 33

Please Help! :confused:

Brian
01-25-2006, 05:53 PM
FAQ forum.