Forum Moderators: coopster

Message Too Old, No Replies

Parse error: syntax error, unexpected T_VARIABLE

Please help

         

mitchell

9:44 am on Nov 6, 2007 (gmt 0)

10+ Year Member



I am very new to this and I have come up against this error. here is my code:

* Site specific configuration
* -------------------------------------------------------------------------
*/
php
$mosConfig_offline = '0';
$mosConfig_host = 'example.net';
$mosConfig_user = 'username';
$mosConfig_password = 'password';
$mosConfig_db = 'databasename';
$mosConfig_dbprefix = 'db_';
$mosConfig_lang = 'english';
$mosConfig_absolute_path = '/path/to/configuration.php';

[edited by: coopster at 4:02 pm (utc) on Nov. 6, 2007]
[edit reason] removed specifics [/edit]

PHP_Chimp

9:46 am on Nov 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What line is the error on? Any can you mark that line on the code you post.
Also what file is that error in? And is the code you posted from that file?

<edit>
You may want to remove your password from the script ;)

[edited by: PHP_Chimp at 9:47 am (utc) on Nov. 6, 2007]

Habtom

9:47 am on Nov 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



*/
php
$mosConfig_offline = '0';

What is that 'php'?

Is it?
<?php

eelixduppy

7:57 am on Nov 7, 2007 (gmt 0)



Definitely that extra 'php' in there unless it is somewhere else in the script that we cannot see. Just thought I'd Welcome you to WebmasterWorld, mitchell. Enjoy your stay :)