Topic: Config.php woe

I cant get it to work.

It's definitely a .php file.

i get an error
Parse error: parse error, unexpected '<' in C:\webspace\hosting4usa\chrisiyer\acidmixes.com\www\upload\config.php on line 2  when i look at config.php in my browser.

index.php comes up blank.

this is exactly what i have in my config.php file

<?php
$db_type = 'mysql';<br />
$db_host = 'localhost';<br />
$db_name = 'forum';<br />
$db_username = 'placid';<br />
$db_password = '********';<br />
$db_prefix = '';<br />
$p_connect = false;<br />

define('PUN', 1);

It's driving me mad...

Thanks

Paul

Re: Config.php woe

Why, oh why, are you adding <br /> after each line? Remove those and it should work.

3 (edited by Frank H 2006-07-07 22:49)

Re: Config.php woe

perhaps he's using a tool like dreamweaver or such? (hopefully those has stopped adding junk into the files, but I'm not so sure)
Notepad (or wordpad) usually works best for the inexperienced smile

Re: Config.php woe

placid wrote:

It's definitely a .php file.

well, that solves #1 on the "why does my config file not work?" list. wink

do as elbekko says and it should be fine.

~James
FluxBB - Less is more

Re: Config.php woe

Thanks, the dreamweaver <br> mark up was the problem.

Re: Config.php woe

I use Dreamweaver too... but I use the code view to modify code tongue