On 2/2/06, C Blue <[EMAIL PROTECTED]> wrote:
jan gestre wrote:
i've made these modifications on index.php to indicate the absolute path, i don't know if it's correct though.

require_once( "/var/www/pjn/pjn/include/pat/patErrorManager.php" );

        require_once( "/var/www/pjn/pjn/config/config.php" );
        require_once( "/var/www/pjn/pjn/include/pjnBase.php" );
        require_once( "/var/www/pjn/pjn/include/pjn.php" );
        require_once( "/var/www/pjn/pjn/include/patTemplate.php" );
        require_once( "/var/www/pjn/pjn/include/patDbc.php" );

after i've made these, this is now the error i get if i open it via browser

Parse error: parse error, unexpected T_VARIABLE in /var/www/pjn/pjn/config/config.php on line 10

i've tried google but not much help
Everything looks ok except this snippet here.  It looks like the previous error was fixed when you put in the absolute paths (though not very portable, but you are still debugging ;). 

the program itself is not portable, i won't be asking for help if it is, right :D sakit na ulo ko d2 eh, hirap ng nde programmer.

What is line 10 of the file config.php (and its surrounding lines)?  The error is now in that file.


when i edited config.php, i forgot to put a semicolon on this line, my bad.

$db_pass                        =       "newpassword"; <----- this line
// $db_pass                        =       "origpassword";

so when i try to run it again, i got a new error:

Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES) in /var/www/pjn/pjn/include/patDbc.php on line 254
Couldn't connect to database
Host: localhost
Database: pjndb
User: root
MySQL said: Access denied for user 'root'@'localhost' (using password: YES)

i tried to use the old password with the same result, below is the line 254 mentioned in the error.


$this->dbid     =       mysql_connect( $this->dbhost, $this->dbuser, $this->dbpass );


_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to