Hi,
I downloaded a PHP and MySQL powered system called "FTS" (Free torrent source), the system can be downloaded from here http://code.google.com/p/freetorrentsource/ . I downloaded version 1.2.3 FINAL and installed it properly.
After installing the system it was needed to mod the system a little bit and i've fone that quite easily.
I tried to write a mod that will be saved in a separate subdirectory called forum. in the forum subdirectory I placed a file index.php in this file I inserted the following lines of code:
<?
// This line was added in order to change the relative path
// Because the bittorrent.php file depend on that the relative
// Path is set to the root directory.
// I tried also to remove this line but i've got cannot open file error
ini_set ('include_path', '/home/torrentl/public_html/');
require_once("include/bittorrent.php");
dbconn(false);
loggedinorreturn();
parked();
stdhead("Forum");
stdfoot();
?>
I visited the /forum/index.php and i've got the following error message:
Warning: mysql_query() [function.mysql-query]: Access denied for user 'torrentl'@'localhost' (using password: NO) in /home/torrentl/public_html/include/functions.php on line 553
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/torrentl/public_html/include/functions.php on line 553
Access denied for user 'torrentl'@'localhost' (using password: NO)
I tried then to move the file to the root directory (of course I renamed it because I dont want to override the index in the root) and then everything was fine and no error messages appeared.
So my question why do I get these error messages? what went wrong? what does the error messages mean? and the most important how to fix that?
Thanks in advance,
Asaa1