Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
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
  • 876 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
  • 876 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
  • 876 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