0

Hi, I Am Having Problems With this Piece Of Code:

<?php

// Config

$Conf = array();
$Conf['db'] = array();
$Conf['template'] = 'default';
$Conf['language'] = 'en';
$Conf['title'] = 'Care In Mind File Server';
$Conf['db']['server'] = 'mysql17.000webhost.com';
$Conf['db']['username'] = 'a6670856_fileser;
$Conf['db']['password'] = 'ja23mes';
$Conf['db']['name'] = 'a6670856_fileser';
$Conf['docUrl'] = 'http://careinmindintranet.co.cc';
$Conf['job_server'] = 'http://careinmindintranet.co.cc/Secure/FileServer/jobs';
$Conf['prehash'] = '';
?>

I Keep geting This Message: Parse error: syntax error, unexpected T_STRING in /home/a6670856/public_html/Secure/FileServer/etc/config.php on line 12

Any ideas? Thanks!

SilverArrow23

Edited by Nick Evan: changed tags to [CODE] and [/CODE]

4
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by silverarrow23
0

check this line

$Conf['db']['username'] = 'a6670856_fileser;

and add an apostophe, just before the semicolon so it becomes:

$Conf['db']['username'] = 'a6670856_fileser';

Your problem is solved.

0

but now i get this: Parse error: syntax error, unexpected T_EXIT in /home/a6670856/public_html/Secure/FileServer/func/jspack.php on line 1
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/a6670856/public_html/Secure/FileServer/inc/mdb.php on line 40
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'a6670856_fileser'@'10.1.1.47' (using password: YES) in /home/a6670856/public_html/Secure/FileServer/inc/mdb.php on line 39

0

paste the contents of this file /home/a6670856/public_html/Secure/FileServer/func/jspack.php here so i can see

0

Ok, here It Is:

<?phpif(!defined('CORE'))	exit(0);function jspack(&$s){	$s = preg_replace(array('/\r\n/s','/\n/s'),'',$s);}?>
0

Try the following:

<?php if(!defined('CORE')) exit(0); function jspack(&$s){	$s = preg_replace(array('/\r\n/s','/\n/s'),'',$s); } ?>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.