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

Recommended Answers

All 6 Replies

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.

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

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

Ok, here It Is:

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

Try the following:

<?php if(!defined('CORE')) exit(0); function jspack(&$s){	$s = preg_replace(array('/\r\n/s','/\n/s'),'',$s); } ?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.