We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,134 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Parse error: syntax error, unexpected T_STRING

here is the code of the php and the last sentence is the problem:

<?php/** 
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information by
* visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
* installation. You don't have to use the web site, you can just copy this file
* to "wp-config.php" and fill in the values.
*
* @package WordPress
*/
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'intmark_wrdp1');

i got this :
Parse error: syntax error, unexpected T_STRING in /home/intmark/public_html/wp-config.php on line 17

4
Contributors
3
Replies
8 Hours
Discussion Span
5 Months Ago
Last Updated
5
Views
lilach.dror
Newbie Poster
1 post since Dec 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

So, I do I know which line is line 17? Please use code tags.

cossay
Junior Poster
139 posts since Nov 2010
Reputation Points: 17
Solved Threads: 24
Skill Endorsements: 0

Hi,

Line 17 isn't necessarily the problem.
The error is basically telling you that there is an unrecognized string somewhere in your code (the parser fell over somewhere after line 17). Usually this would happen if you have mismatched quotes or apostrophes in your code.

1) Make sure you don't have quotes or apostrophes within your secret keys (and other constants)

2) Make sure you use apostrophes around the constant strings, and not the MS Word pseudo-apostrophes which can look the same in some editors, but are definitely not the same. If you haven't been copying and pasting from an MS product, you should be right.

cf: http://wordpress.org/support/topic/parse-error-unexpected-t_string-in-wp-configphp-version-26

HTH...

gofractal
Newbie Poster
1 post since Dec 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Change

<?php/** 
* The bas...

to

<?php
/** 
* The bas...
diafol
Keep Smiling
Moderator
10,661 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,513
Skill Endorsements: 57

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0752 seconds using 2.81MB