Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Martina Carrington
Courses Plus Student 15,807 Pointsbootstrap
i was trying to installed the bootstrap on my Xampp and some reason i received this
Parse error: syntax error, unexpected '4' (T_LNUMBER), expecting ',' or ';' in C:\xampp\htdocs\index.php on line 3
8 Answers

Martina Carrington
Courses Plus Student 15,807 Pointsi was following the video and place the bootstrap folder in the htdocs and i received error . i am using the apach

Martina Carrington
Courses Plus Student 15,807 Points@Patrick Cooney, thanks . i was looking at the code and realized it was missing

Patrick Cooney
12,216 PointsExcellent. Glad that's fixed. I changed my comment to an answer so people know this has been answered.

Patrick Cooney
12,216 PointsIs this the entire file? Do you have the closing ?>
? I don't see any other obvious errors.

Martina Carrington
Courses Plus Student 15,807 Pointsyes , this come from the wordpress project folder and i copy it and place it in the bootstrap folder . located in the htdoc

Konrad Pilch
2,435 PointsGood its solved :D i though you were doing something else :D i forogt Zac takes it from 0

Martina Carrington
Courses Plus Student 15,807 Points@Patrick Cooney
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );

Konrad Pilch
2,435 PointsYou were trying to activate bootstrap in your WordPress site ? Do you know well enoguh WP ? and did you work with PHP includes before ? How did you wanted to install it?

Martina Carrington
Courses Plus Student 15,807 Points:D , awesome help

Martina Carrington
Courses Plus Student 15,807 PointsHey Konrad Pilch , i still have problem locating my database .

Konrad Pilch
2,435 PointsWhat kind of database? your PHP MyAdmin?

Martina Carrington
Courses Plus Student 15,807 Points@Konrad pilch yes, it been created on PHP myAdmin but wordpress can't located the bootstraps_to_wp table.

Konrad Pilch
2,435 PointsAre you making a WordPress Theme?
It needs to be in htdocs .
You need to downolad wordpress and put it in htdocs.
You need to go on themes and put your site there.
YOu need to create a database.
YOu need to install wordpress.
It should connect automatically .

Martina Carrington
Courses Plus Student 15,807 PointsKonrad Pilch , yes .I am sorry if i sound very confusing lol

Konrad Pilch
2,435 PointsSo is it working now ? : p

Konrad Pilch
2,435 PointsAre you back yet? xD
Patrick Cooney
12,216 PointsPatrick Cooney
12,216 PointsCan you post the code from your index.php file for us?