Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-03-07 11:16:23
- davit
- New Member
- Registered: 2007-03-07
- Posts: 6
Parse error: syntax error, unexpected T_VARIABLE in C\Program Files\xa
Hello,
Can anyone help me out with an installation issue? In step 2 of the detailed installation instructions it advises the user to copy the config info to a config.php.default file in the Textpattern folder and rename it config.php. In 4.0.4, this file is not present, there is however a config-dist so I’ve replaced the contents of this with the config info and renamed config.php however when when I hit ‘I did it’ the page is blank and shows Done and if I go to the local host page I get the above error message. The config info consists of
<?pap
$txpcfg[‘db’] = ‘test’;
$txpcfg[‘user’] = ‘root’;
$txpcfg[‘pass’] = ‘test’;
$txpcfg[‘host’] = ‘localhost’;
$txpcfg[‘table_prefix’] = ‘’;
$txpcfg[‘txpath’] = ‘C:\Program Files\xampp\htdocs\textpattern’;
$txpcfg[‘dbcharset’] = ‘utf8’;
?>’
Cheers!
Offline
#2 2007-03-07 12:56:54
- anoke
- Archived Plugin Author
- Registered: 2006-04-15
- Posts: 152
Re: Parse error: syntax error, unexpected T_VARIABLE in C\Program Files\xa
Is that an exact copy? <?pap and ?>' should be <?php and ?>.
- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -
Offline
#3 2007-03-07 13:41:57
- davit
- New Member
- Registered: 2007-03-07
- Posts: 6
Re: Parse error: syntax error, unexpected T_VARIABLE in C\Program Files\xa
Hi Anoke, thanks for responding, its exact. I’ve tried changing the pap to php and I get another error referring to some other files.
Offline
Re: Parse error: syntax error, unexpected T_VARIABLE in C\Program Files\xa
Can you copy/paste the exact error message here?
Offline
#5 2007-03-07 18:43:07
- anoke
- Archived Plugin Author
- Registered: 2006-04-15
- Posts: 152
Re: Parse error: syntax error, unexpected T_VARIABLE in C\Program Files\xa
Hmm, I think T_VARIABLEs are due wrong string escaping usually… Those ‘’s look strange too. They should be 's or "s. But might be forum mangling characters (or not) though..
How did you made that <?php ... ?> in the first place? Did you copy&paste it?
- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -
Offline
#6 2007-03-08 01:08:40
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Parse error: syntax error, unexpected T_VARIABLE in C\Program Files\xa
<?php
$txpcfg['db'] = 'test';
$txpcfg['user'] = 'root';
$txpcfg['pass'] = 'test';
$txpcfg['host'] = 'localhost';
$txpcfg['table_prefix'] = '';
$txpcfg['txpath'] = 'C:\Program Files\xampp\htdocs\textpattern';
$txpcfg['dbcharset'] = 'utf8';
?>
Offline