Forum Moderators: coopster

Message Too Old, No Replies

unexpected T VARIABLE

mysql error

         

superfly3000

2:50 pm on Jun 26, 2007 (gmt 0)

10+ Year Member



Hello everyone,

Sorry for posting a question in my first post, but I don't know where else to turn.

I have get a unexpected T_VARIABLE error on line 21 of a script I have installed and don't know anything about it and was wondering if anybody could offer some guidance.

here is the script:


<?
session_start();
//**********************************************//
//********SET FULL URL TO SEARCH DIRECTORY IN $APP_URL ******//
// ADD THE VALUES IN THIS FORMAT:

// DO NOT PUT A TRAILING SLASH
//**********************************************//

$APP_URL= "http://www.example.com";

//**********************************************//
//********SET FULL PHYSICAL PATH TO SEARCH DIRECTORY IN $DIR_NAME******//
// ADD THE VALUES IN THIS FORMAT: /directoryname
// DO NOT PUT A TRAILING SLASH
// LEAVE BLANK IF YOUR SITE IS ON ROOT
//**********************************************//

$DIR_NAME=""
$APP_PATH= $_SERVER['DOCUMENT_ROOT']."".$DIR_NAME;

<<------This last line is line 21 where the apparent error is.

The site is in the root directory.
Thank you in advance.

[edited by: eelixduppy at 4:12 pm (utc) on June 26, 2007]
[edit reason] example.com [/edit]

hawkerz

2:56 pm on Jun 26, 2007 (gmt 0)

10+ Year Member



Try putting a / as your directory name, that might work at a glance

----
edit: nevermind, see the post below mine. I missed that darn line :(

[edited by: hawkerz at 2:57 pm (utc) on June 26, 2007]

jatar_k

2:57 pm on Jun 26, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld superfly3000,

you get an error on that line because the line before is messing a semi colon

it should be

$DIR_NAME="";

superfly3000

3:34 pm on Jun 26, 2007 (gmt 0)

10+ Year Member



Thank you for your replies.

I added the ; to the end of the previous line, but now i get a "Error connecting to mysql" error.....

hawkerz

3:36 pm on Jun 26, 2007 (gmt 0)

10+ Year Member



Are you runnign a mysql DB? if so did you put your information into this config file?