introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

Parse error: syntax error, unexpected $end in C:\Users\xxx\EasyPHP-5.3.2i\www\conn.php on line 43



Posted by: vvvddd2003
May 12, 2010 11:18PM
I am getting the error code below

Parse error: syntax error, unexpected $end in C:\Users\xxx\EasyPHP-5.3.2i\www\conn.php on line 43

The script works fine on my hosting account. I downloaded easyphp so I could edit my scripts without having to be connected to the internet. I have tried to figure this out but have not been successful.

Line 43 is the last line. I have short tags turned on as this is how the whole script was written here is the file it is my conn.php file for connecting to mysql



<?

//enter your MySQL database host name, often it is not necessary to edit this line
$db_host = "localhost";

//enter your MySQL database username
$db_username = "root";

//enter your MySQL database password
$db_password = "(no password)";


//enter your MySQL database name
$db_name = "test";



/*
Enter the full address to the directory where you have installed the script

for example, if you installed the script at the "cars" directory, the $BannerPath should looks like:

$BannerPath = "www.bigfranktowing.com"

*/
$BannerPath = "C:\Users\xxx\easyPHP-5.3.2i\mysql\data\";

////////////////////////////////////////////////////////////
////// do not edit below this line ///////
///////////////////////////////////////////////////////////

//connect to the database server
$connection = mysql_connect($db_host, $db_username, $db_password) or die(mysql_error());

//select database
$db = mysql_select_db($db_name, $connection);

session_start();

$t = time();


?>

If there is anyone who could help I would greatly appreciate it.

Thanks



Edited 1 time(s). Last edit at 05/13/2010 12:39AM by vvvddd2003.
Options: ReplyQuote
Posted by: Thierry
May 17, 2010 12:15PM
Use PHP editor, you will see easily the problem:

$BannerPath = "C:\Users\xxx\easyPHP-5.3.2i\mysql\data\";

You escape final quote.
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.