Posted on: 05/28/05 08:13pm
By: Anonymous (Ketch)
Hey,
I am helping a buddy set-up his website again and I have got this error but am not seeing what is wrong. Any help would be great.
ERROR "Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/juicedom/public_html/config.php on line 72"
Code:
69 // You only need to change this if you moved or renamed the public_html
70 // directory. In that case, you should specify the complete path to the
71 // directory like this (i.e. without the $_CONF['/home/juicedom/public_html']):
72 // $_CONF['path_html'] = ['/home/juicedom/public_html'];
73 $_CONF['path_html'] = $_CONF['path'] . '';
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING
Posted on: 05/28/05 08:45pm
By: Turner
Well line 73 has a problem. Take out the period and quotation mark at the end. The line should end with a semi colon. You are also making 'path_html' = to 'path'. Be sure that is what you want to do. I think you REALLY want this
$_CONF['path_html'] = $_CONF['path'] . 'public_html/';
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING
Posted on: 05/28/05 11:27pm
By: Anonymous (Ketch)
I tried that and it still doesn;t work. Any other Ideas? look at www.juicedome.com for the error. I appreciate the help
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING
Posted on: 05/29/05 12:56am
By: Turner
I can't exactly tell without more of your config.php. But it seems the config.php file is located in your public html. I don't think that is advisable. It should be in /home/juicedom
Lib-common needs to be edited so that it looks to /home/juicedom/config.php
So then
$_CONF['path'] = '/home/juicedom/';
$_CONF['path_html'] = $_CONF['path'] . 'public_html/';
In lib-common.php
require_once( '/home/juicedom/config.php' );
If that doesn't work, then you may have white space at the beginning or end of lib-common (or even in config.php). Check to make sure all files are where they should be.
-jeff
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING
Posted on: 05/29/05 03:53am
By: Dirk