Настройка скрипта @ DeForum.ru
DeДверь  
Логин:  
Пароль:  
  Автологин  
   
Разместить рекламу
Письмо админу
Правила | FAQ | *Поиск | Наша команда | Регистрация | Вход
 
 
 Страница 1 из 1 [ Сообщений: 3 ] 
*   Список форумов / Начинка и техника / Программирование для WWW » ответить » создать топик « | »
Автор Сообщение
e_moon
новый человек
0
Сообщения: 74
Зарегистрирован: 19.06.02
Откуда: В Киеве
Заголовок сообщения: Настройка скрипта
Сообщение Добавлено: 22 Июль 2004, 19:10:18 
У меня возникла проблема с настройкой скрипта.

Вот часть кода:
Код:
-------------------------------------------------------------------------
$path = "/usr/local/apache2/htdocs/pafiledb"; //This is the full system path to your paFileDB folder. You will need to obtain this information from a phpinfo.php file, or from your host.
--------------------------------------------------------------------------


Ну я и запустил phpinfo (http://www.bur.com.ua/pafiledb/phpinfo.php). Не может ли мне кто подсказать где в phpinfo посмотреть этот system path.

Код:
System  Linux pulsar.biz.ua 2.4.26-ow1 #2 Wed Jun 16 10:14:07 GMT 2004 i686 
Build Date  Jul 20 2004 08:27:52 
Configure Command  './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-kerberos' '--with-pspell' '--with-imap' '--with-imap-ssl' '--with-gettext' '--with-xml' '--with-dom' '--with-dom-xslt' '--with-dom-exslt=/usr/lib/exslt' '--enable-bcmath' '--enable-safe-mode' '--enable-calendar' '--with-curl' '--enable-ftp' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-ttf' '--with-freetype-dir' '--with-gd' '--enable-gd-native-ttf' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-ming=../ming-0.2a' '--enable-magic-quotes' '--with-mysql=/usr' '--with-pear' '--enable-xslt' '--with-xslt-sablot=/usr' '--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-zlib' '--with-openssl' '--with-bz2' '--enable-dba' '--with-flatfile' '--with-db4' '--enable-dbase' '--enable-exif' '--enable-wddx' '--enable-trans-sid' '--enable-dio' '--enable-sysvsem' '--with-zip' '--with-iconv' 
Server API  Apache 
Virtual Directory Support  disabled 
Configuration File (php.ini) Path  /usr/local/Zend/etc/php.ini 
PHP API  20020918 
PHP Extension  20020429 
Zend Extension  20021010 
Debug Build  no 
Thread Safety  disabled 
Registered PHP Streams  php, http, ftp, https, ftps, compress.bzip2, compress.zlib 


И еще по теме
Код:
<?php
$list = "TYPE";
include("/full/path/to/toplist.php");
?>


Код:
"…/full/path/to/ - This is the full path to toplist.php. If you do not know the path to your files, you will have to ask your host. *NIX server paths are "/full/path/to/toplist.php" and Windows server paths are "C:/full/path/to/toplist.php..."


…/full/path/to/ - Где и его можно заодно просмотреть? Заранее спасибо всем кто поможет...

_________________
Дизайн - это в первую очередь процесс, а макет - подсудимый.
Long Муж.
SubAdmin
Теоретик
17
Сообщения: 4362
Зарегистрирован: 25.04.01
Откуда: Москва
Сообщение Добавлено: 22 Июль 2004, 19:28:27 
1. $path = "/home/burbery/public_html/pafiledb";
2. посмотри где у тебя лежит этот toplist.php и соорентируйся относительно pafiledb, ну а там используй то, что есть в 1

зы. а вообще за такие скрипты надо руки отрывать

_________________
Мудрость не всегда приходит с возрастом. Бывает, что возраст приходит один.
e_moon
новый человек
0
Сообщения: 74
Зарегистрирован: 19.06.02
Откуда: В Киеве
Сообщение Добавлено: 22 Июль 2004, 20:25:30 
Прописал. Спасибо - правильно.
Тут новая проблема приключилась, наверное еще похуже. Теперь, если запустить отредактированный скрипт-то вроде все работает. Но правда не тем боком что надо.
Код:
<!--Start List and Script-->
<?php
$list = "";
include("toplist.php");
?>
<!--End List and Script-->

… - если оставить поле "TYPE" пустым или написать неправильное имя переменной
(их всего три, на выбор -
1) newest - This will show the top X newest files.
2) downloads - This will show the top X popular files based on the amount of downloads each file has had
3) rating - This will show the top X popular files based on the rating visitors to your site have given them.),
то требует прописать его значение:
"You didn't select the type of list to show. Please see the paFileDB manual for more information"

А если запустить этот скрипт где-нибуть или без "шапки":
Код:
<!--Start List and Script-->
<?php
$list = "rating";
include("toplist.php");
?>
<!--End List and Script-->


…, выдаеться ошибка:
"Fatal error: Call to a member function on a non-object in /home/burbery/public_html/pafiledb/toplist.php on line 17"

А если так, с шапкой:
Код:
<?php
/*
  paFileDB 3.1
  c2001/2002 PHP Arena
  Written by Todd
  todd@phparena.net
  http://www.phparena.net
  Keep all copyright links on the script visible
  Please read the license included with this script for more information.
*/
if (file_exists("./install.php")) { die("Error: The file install.php (paFileDB installer) still exists on the server! This is a security risk! Please delete the file to continue using paFileDB."); }
/*---------------------
   If register_globals is off, we'll extract all of the superglobals so they can be used.
---------------------*/
if (!@ini_get('register_globals')) {
   extract($_GET);
   extract($_POST);
   extract($_COOKIE);
   extract($_SERVER);
}
$starttime = microtime();
$starttime = explode(" ",$starttime);
$starttime = $starttime[1] + $starttime[0];
$authmethod = "cookies"; //Set this to 'cookies' to use cookies to log you in (recommended.) If you're having problems with cookies, set this to 'sessions' and make sure a 'sessions' directory exists and is CHMODed to 777 (on *nix servers)
if ($authmethod == "sessions") {
   session_save_path("./sessions");
   session_start();
}
require "./includes/mysql.php";
require "./includes/functions.php";
$pafiledb_sql->connect($db);
$config = $pafiledb_sql->query($db,"SELECT * FROM $db[prefix]_settings",1);
require "./lang/$config[13].php";
if ($login == "do") { include "./includes/$action/login.php"; exit; }
if ($ad == "logout") { include "./includes/admin/logout.php"; exit; }
if ($tm == "logout") { include "./includes/team/logout.php"; exit; }
$logged = "";
require "./includes/admin/auth.php";
require "./includes/team/auth.php";
if ($action == "download") {
   include "./includes/download.php";
   exit();
}
if ($logged == 1 && $ad == "backupdb") {
   include "includes/admin/backupdb.php";
   exit();
}
?>
<!--Start List and Script-->
<?php
$list = "rating";
include("toplist.php");
?>
<!--End List and Script-->

То ни показывает совсем ничего, хотя страница грузиться нормально.
Разрешение на папку "INCLUDES", mysqul.php (а заодно и на toplist.php - зачем сам не знаю) я уже "довел" до 777 …
Можете что посоветовать? [/code]

_________________
Дизайн - это в первую очередь процесс, а макет - подсудимый.
*   Список форумов / Начинка и техника / Программирование для WWW « | » » ответить » создать топик
 Страница 1 из 1 [ Сообщений: 3 ] 
Показать сообщения за:   Поле сортировки  
Найти:
Перейти:  
Уровень доступа: Вы не можете начинать темы. Вы не можете отвечать на сообщения. Вы не можете редактировать свои сообщения. Вы не можете удалять свои сообщения. Вы не можете добавлять вложения.
cron


ООО ДеФорум
При использовании материалов сайта ссылка на DeForum.ru — обязательна.
Проект Павла Батурина ©2001-2077; // Powered by phpBB © 2013 phpBB Group
Rambler's Top100