Forum Moderators: coopster

Message Too Old, No Replies

Just a quick question.

         

oniell121

7:54 am on Jan 20, 2008 (gmt 0)

10+ Year Member



I get a Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\config.php on line 5

It's just a SIMPLE config script...what really small, stupid thig have I over looked?


<?php

$dbhost = "localhost";
$dbuser = "root";
$dbpassword = "root";
$dbdatabase = "blogtastic";

$config_blogname = "Nathaniels site";

$config_author = "Nathaniel Bland";

$config_basedir = "http://localhost/";

?>

oniell121

8:04 am on Jan 20, 2008 (gmt 0)

10+ Year Member



ARGH..I got it..I CAN'T BELIEVE I missed 2 semicolons..I knew it had to be something small.....thats what those T_VARIABLE errors are from.

jatar_k

1:11 pm on Jan 20, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld oniell121,

sometimes just posting it helps find it

they actually list all parser error types here
[php.net...]

just as an added info

oniell121

4:29 pm on Jan 20, 2008 (gmt 0)

10+ Year Member



Thanks, I was kinda looking around last night. I'll defiantly be staying here.