Kamrad.ru
 
 
дневники | кабинет | регистрация | календарь | участники | faq | правила | поиск | фотоальбом | каська | выйти
Kamrad.ru Kamrad.ru » Авторские форумы » Веб-дизайн, вёрстка и веб-программирование » Камрады, нужна консультация по Download скрипту (php)
новая тема  ответить следующая тема | предыдущая тема
Автор
 
Svartkladd - offline Svartkladd
Question13-01-2004 20:27 URL сообщения      K-Mail    Профиль    Поиск    Контакт-лист   Редактировать
Priest Of Syrinx



Камрады, нужна консультация по Download скрипту (php)

Возникли определённые затруднения при установке и настройке довольно известной бд - pafiledb 3.1 под апач 1.3.28 с версией php 4.3.2 (привожу конфигурацию на всякий случай), mysql 4.0.14b-win.

Собсно, вот гайд по установке:

To install, follow these simple steps:

Unzip the paFileDB 3 zip file (You probably already did if you are reading this)
Go into the "includes" directory in the unzipped directory and open up mysql.php in a text editor such as Notepad. Change the variables so they now contain the correct MySQL settings for your server. Your host can provide these settings for you. If you are unsure how to change variables, it's pretty easy. The default MySQL server variable is set as this:
$db[host] = "localhost";
If your MySQL server is db.mysite.com, you would change that variable to this:
$db[host] = "db.mysite.com";
Once you are done, save and close the file. Note: Some text editors (Such as UltraEdit and EditPlus) will make a backup of the file you just saved, such as mysql.php.bak. These files can be viewed by anyone and probably contain MySQL server passwords and can be a security risk. To make sure these files aren't uploaded, delete them before uploading.
Note: You do not need to upload upgrade.php, but you do need to upload install.php
Once the settings are configured, use your FTP program to upload the files to your server. It is recommended that they are put in their own directory, such as http://www.mysite.com/pafiledb*
If you are running a Windows NT/2k/XP server, skip this step. If you're running a Unix/Linux server, continue reading:
CHMOD the directory "uploads" 777 using your FTP program.*
Run install.php in your browser, example: http://www.mysite.com/pafiledb/install.php and the installer will walk you through the steps to finish installing paFileDB 3 on your server.
For security reasons, paFileDB 3 will NOT work until install.php is deleted from your server. Leaving it on your server can allow anyone to clear your database. Remove the file as soon as the installation is successfully completed.
*See your FTP program's help file for specific instructions on doing this



То есть после распаковки я лезу в mysql.php

Что вижу:

$db[host] = "localhost"; //This is the MySQL server paFileDB will connect to
$db[user] = "root"; //This is the MySQL user name
$db[pass] = ""; //This is the MySQL password
$db[name] = "pafiledb"; //This is the MySQL database paFileDB will put it's information in


Всё ясно - оставляем localhost localhost'ом, ибо тесты дома и создаю папку pafiledb в data, которая в папке моей My SQL (Если этого не сделать, при установке он выдаёт ошибку: Error: Unable to access the database pafiledb. MySQL returned this error: Unknown database 'pafiledb' ).

Про CHMOD 777 естественно забывем, ибо windows.

С созданной папкой установка заканчивается успешно, НО:

На протяжении процесса установки и при запуске скрипта, всё заполнено, уже намазолившими многим глаза, ноутисами вида:


Notice: Undefined variable: action in d:\web\current project\php sсripts\download\pafiledb31\pafiledb\pafiledb.php on line 97

Notice: Undefined variable: action in d:\web\current project\php sсripts\download\pafiledb31\pafiledb\pafiledb.php on line 104

Notice: Use of undefined constant category - assumed 'category' in d:\web\current project\php sсripts\download\pafiledb31\pafiledb\pafiledb.php on line 105

Notice: Use of undefined constant file - assumed 'file' in d:\web\current project\php sсripts\download\pafiledb31\pafiledb\pafiledb.php on line 108

Notice: Use of undefined constant viewall - assumed 'viewall' in d:\web\current project\php sсripts\download\pafiledb31\pafiledb\pafiledb.php on line 111

Notice: Use of undefined constant search - assumed 'search' in d:\web\current project\php sсripts\download\pafiledb31\pafiledb\pafiledb.php on line 114

Notice: Use of undefined constant license - assumed 'license' in d:\web\current project\php sсripts\download\pafiledb31\pafiledb\pafiledb.php on line 117

Notice: Use of undefined constant rate - assumed 'rate' in d:\web\current project\php sсripts\download\pafiledb31\pafiledb\pafiledb.php on line 120

Notice: Use of undefined constant admin - assumed 'admin' in d:\web\current project\php sсripts\download\pafiledb31\pafiledb\pafiledb.php on line 123

Notice: Use of undefined constant team - assumed 'team' in d:\web\current project\php sсripts\download\pafiledb31\pafiledb\pafiledb.php on line 126

Notice: Use of undefined constant email - assumed 'email' in d:\web\current project\php sсripts\download\pafiledb31\pafiledb\pafiledb.php on line 129

Notice: Use of undefined constant stats - assumed 'stats' in d:\web\current project\php sсripts\download\pafiledb31\pafiledb\pafiledb.php on line 132


Вот, сия бяка преследует меня в разных скриптах и я хотел бы, как изучающий ещё только, вэб программинг, научиться обходить подобные неприятности.


__________________
...en grusom død til hver en mann som ikke hyller vårt faderland...

Dark - offline Dark
13-01-2004 23:36 URL сообщения Дневник     K-Mail    Профиль    Поиск    Контакт-лист   Редактировать
Камрад
Темная личность



Открываешь php.ini, находишь строчку "error_reporting = E_ALL" и заменяешь её на "error_reporting = E_ALL & ~E_NOTICE". Больше ты этих ошибок не увидишь.

Svartkladd - offline Svartkladd
14-01-2004 15:08 URL сообщения      K-Mail    Профиль    Поиск    Контакт-лист   Редактировать
Priest Of Syrinx



Dark Огромное спасибо, камрад

Текущее время: 23:39
новая тема  ответить следующая тема | предыдущая тема
 
Перейти:

версия для печати   отправить эту страницу по e-mail   подписаться на эту тему

 
Powered by: vBulletin Version 2.0.1
Copyright ©2000, 2001, Jelsoft Enterprises Limited.
Любое использование материалов сайта
возможно только с разрешения его администрации.


 

Рейтинг@Mail.ru
Рейтинг@Mail.ru