Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

PHP syntax error message... NEED HELP


  • Please log in to reply

#1
dmelgray

dmelgray

    Member

  • Member
  • PipPip
  • 47 posts
The issue is with the line

define("SITE_DOMAIN", "www.rhythmmovement.com");

line 7 from the below has this error...

Parse error: syntax error, unexpected T_STRING in D:\Hosting\6585577\html\rhythmmovement\site.defs.php on line 7

from the coding

<?php
define("DB_HOST", "localhost");
define("DB_USER", "rmhost");
define("DB_PASS", "Pacific777");
define("DB_NAME", "PSC");
define("SITE_PATH", "D:\Hosting\6585577\html\rhythmmovement\");
define("SITE_DOMAIN", "www.rhythmmovement.com");
$sitename = "rhythmmovement.com";
$sitemail = "[email protected]";
ini_set("include_path", SITE_PATH."lib");
?>

Please help
  • 0

Advertisements


#2
bdlt

bdlt

    Member

  • Member
  • PipPipPip
  • 875 posts
try adding the escape characters in this line:

define("SITE_PATH", "D:\\Hosting\\6585577\\html\\rhythmmovement\\");
  • 0

#3
dmelgray

dmelgray

    Member

  • Topic Starter
  • Member
  • PipPip
  • 47 posts
That detaches ANY connection to the database on the server. The error is in the next line I believe but appreciate any further assistance.
  • 0

#4
bdlt

bdlt

    Member

  • Member
  • PipPipPip
  • 875 posts
what do you see with these lines?


define("SITE_PATH", "D:\\Hosting\\6585577\\html\\rhythmmovement\\");
echo SITE_PATH;
  • 0

#5
dmelgray

dmelgray

    Member

  • Topic Starter
  • Member
  • PipPip
  • 47 posts
Here is the website response



Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10061) in D:\Hosting\6585577\html\rhythmmovement\index.php on line 9

Warning: mysql_select_db() [function.mysql-select-db]: Can't connect to MySQL server on 'localhost' (10061) in D:\Hosting\6585577\html\rhythmmovement\index.php on line 10

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in D:\Hosting\6585577\html\rhythmmovement\index.php on line 10

Warning: mysql_query() [function.mysql-query]: Can't connect to MySQL server on 'localhost' (10061) in D:\Hosting\6585577\html\rhythmmovement\index.php on line 11

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in D:\Hosting\6585577\html\rhythmmovement\index.php on line 11
Can't connect to MySQL server on 'localhost' (10061)
  • 0

#6
bdlt

bdlt

    Member

  • Member
  • PipPipPip
  • 875 posts
it appears that we have moved on from the syntax error to a mysql_connect() problem. Unfortunately, I won't be much help here. Perhaps your webhost can assist with mysql_connect().
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP