Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: How to access to limesurvey database in PHP

How to access to limesurvey database in PHP 1 Jahr 9 Monate her #88093

  • wjzwjh
  • wjzwjhs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 1
  • Karma: 0
I just want to access to LimeSurvey database. However, in my PHP code first line, I put require_once '/application/config.php' as a way to load up the LimeSurvey DB Information. But the page always return("No direct script access allowed"). And I check config.php file, and only when basepath is not defined can generate this problem.(if (!defined('BASEPATH')) exit('No direct script access allowed');) So how and where to set the basepath. Thanks for everyone in advance here.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: How to access to limesurvey database in PHP 1 Jahr 9 Monate her #88097

  • DenisChenu
  • DenisChenus Avatar
  • ONLINE
  • Moderator Lime
  • Beiträge: 6277
  • Dank erhalten: 801
  • Karma: 241
Hello,

Just :

define ('BASEPATH', '');

before include.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.152 Sekunden
Donation Image