Bonjour,
je possède plusieurs serveur que j’héberge moi même sur un pc sous Windows, jusque la j'utiliser Fast pour un seul de mes serveurs, dernièrement j'ai besoin de l'utiliser sur un autre serveur mais du coup les 2 serveurs partage la même base de donnée..
j'ai vu ce post plus haut mais je n'arrive pas à l'appliquer. soit Fast ne ce lance pas, soit j'ai quand même les records de l'autre serveur. Je suis nul en codage et n'y comprend pas grand choses du coup je me perd complètement dans mes testes...
Es qu'il vous serait possible de me donnée quelques explications sur le fonctionnement de Fast?
Quel sont les fichiers à modifier pour avoir Fast sur plusieurs serveurs avec des base de données différentes?
Merci d'avance, et félicitation pour le travail fourni, Fast ces très propre et fluide.
FAST 4.0.0q (2013-03-07) pour TM2/Canyon/Stadium
Moderator: French Moderator
Re: FAST 4.0.0q (2013-03-07) pour TM2/Canyon/Stadium
Tu as surement pas donné la directive de creer le dossier de la base de données si il n'existe pas
voici ce que j'ai dans mon fichier : data/php-api/txt-db-api.php la modification est a partir de la ligne 49 mais je te copie tout le fichier
voici ce que j'ai dans mon fichier : data/php-api/txt-db-api.php la modification est a partir de la ligne 49 mais je te copie tout le fichier
Code: Select all
<?php
/**********************************************************************
Php Textfile DB API
Copyright 2005 by c-worker.ch
http://www.c-worker.ch
***********************************************************************/
/**********************************************************************
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
***********************************************************************/
/**********************************************************************
Master Include File (Users)
***********************************************************************/
/**********************************************************************
Essential Properties (MUST BE SET BEFORE THE API CAN BE USED)
***********************************************************************/
// Directory where the API is located (Server Path, no URL)
$API_HOME_DIR="./data/php-api/";
//$API_HOME_DIR="c:\\programme\\apache\\htdocs\\php-api\\";
// Directory where the Database Directories are located
// THIS IS NOT THE FULL PATH TO A DATABASE, ITS THE PATH
// TO A DIRECTORY CONTAINING 1 OR MORE DATABASE DIRECTORIES
// e.g. if you have a Database in Directory /home/website/test/TestDB
// you must set this property to /home/website/test/
global $_SystemInfo;
$DB_DIR="./data/".$_SystemInfo['ServerLogin']."/";
if(!is_dir($DB_DIR)){
mkdir($DB_DIR);
}
//$DB_DIR="c:\\programme\\apache\\htdocs\\php-api-tests\\";
// ----------- IGNORE FROM HERE (Users) --------------
if(!defined("API_HOME_DIR")) define("API_HOME_DIR" ,$API_HOME_DIR);
if(!defined("DB_DIR")) define("DB_DIR" ,$DB_DIR);
/**********************************************************************
Includes
***********************************************************************/
include_once(API_HOME_DIR . "resultset.php");
include_once(API_HOME_DIR . "database.php");
?>
Re: FAST 4.0.0q (2013-03-07) pour TM2/Canyon/Stadium
Effectivement j'ai simplement pas ecrit une partie du code...
le boulet
Merci bien
Code: Select all
mkdir($DB_DIR);
}
Merci bien
Re: FAST 4.0.0q (2013-03-07) pour TM2/Canyon/Stadium
De rien
si j ai bien compris de mon coté
Si le dossier db_dir n existe pas
Creation du dossier db_dir
si j ai bien compris de mon coté
Code: Select all
if(!is_dir($DB_DIR)){
Si le dossier db_dir n existe pas
Code: Select all
mkdir($DB_DIR);
}
Re: FAST 4.0.0q (2013-03-07) pour TM2/Canyon/Stadium
Merci pour les explications supplémentaire
Who is online
Users browsing this forum: No registered users and 2 guests