|
||||
|
|
OOTP Mods - Database Tools Do you need to take a dump? SQL gurus welcome |
![]() |
|
Thread Tools |
![]() |
#1 |
Bat Boy
Join Date: Dec 2013
Posts: 4
|
StatsLab setup help
I'm trying to get stats lab set up but have never done it before and needed a little help.
I keep getting errors when I run the validator. The first error is: Warning: include(//home/fantasyf/sqldump/<fantasyfantasy>/dbopen.php) [function.include]: failed to open stream: No such file or directory in /home/fantasyf/public_html/StatsLab/session_functions.php on line 71 There are numerous more like this one, but they all say the same "no such file or directry exists". One of them at the bottom says: ERROR: dbopen.php file not found in SQL upload directory. Please create this file based on dbopen.php.sample. After doing so, return to this page. I double checked this and it is there. Is this causing the first problem? I followed the included pdf instructions included in the statslab but noticed they were for ootp 13, not 14. Are there any differences for 14? I did double check to make sure I had the right zip file downloaded and double checked and performed each step multiple times. Are there any common mistakes or does anyone know what my problem might be? |
![]() |
![]() |
![]() |
#2 |
Bat Boy
Join Date: Dec 2013
Posts: 4
|
Well, I may have fixed that problem, but now the variable tester says:
Parse error: syntax error, unexpected T_VARIABLE in the dbopen.php file. I've watched fidel's video from allsimbaseball and followed the instructions but fidel's video was for ootp 11 and the pdf file included for statslab install for ootp 14 says it is the instructions for ootp 13. The dbopen sample file reads: <?php $db = mysql_connect('sqlhost.domain.com','sqluuser','sql password') or die('Could not connect: '.mysql_error()); mysql_select_db('sqldb'); ?> I got the user and password and database in there, what goes in 'sqlhost.domain.com' ? Is this local host as fidel says in his video, it isn't working for me unless something else is wrong. Thanks for the help if anyone is reading this. |
![]() |
![]() |
![]() |
#3 |
Bat Boy
Join Date: Dec 2013
Posts: 4
|
Well, I don't know if it is better, but after installing for the fourth time, now I only get the error:
Parse error: syntax error, unexpected '$' in /home/fantasyf/sqldump/dbopen.php on line 1 My dbopen.php file reads: <?php$db = mysql_connect('localhost','user_deleted','password _deleted') or die('Could not connect: '.mysql_error()); mysql_select_db('db_deleted');?> I typed deleted over my user,password and db data information. Can someone please help? I'm just trying random things now, gasping for air. |
![]() |
![]() |
![]() |
#4 |
Minors (Double A)
Join Date: Jul 2010
Location: Denver, CO
Posts: 143
|
|
![]() |
![]() |
![]() |
Bookmarks |
|
|