Actions

Alternatives to the LimeSurvey import function/nl: Difference between revisions

From LimeSurvey Manual

No edit summary
No edit summary
Line 8: Line 8:
Uitvoeren: Ga in de shell naar de map limesurvey/admin en tik in:
Uitvoeren: Ga in de shell naar de map limesurvey/admin en tik in:


<code>php cmdline_importsurvey <File to import> <nowiki>[</nowiki><user> <password>]</code>
<code>php cmdline_importsurvey <invoerbestandt> <nowiki>[</nowiki><user> <password>]</code>


*<File to import> has to be one of the described above;
*<File to import> has to be one of the described above;

Revision as of 12:06, 17 September 2017

Import using the commandline utility

Vanaf versie 1.50 t/m versie 1.92 was het mogelijk om via de commandoregel (shell) enquêtes te importeren. Je moet toegang hebben tot de shell en ook moet PHP zo zijn ingesteld dat het uitvoeren van scripts via de shell toegestaan is.

Deze functie is nuttig als je bij het importeren via het administratiescherm (hierboven beschreven) time-out problemen krijgt omdat de te importeren enquête erg groot is.

Uitvoeren: Ga in de shell naar de map limesurvey/admin en tik in:

php cmdline_importsurvey <invoerbestandt> [<user> <password>]

  • <File to import> has to be one of the described above;
  • <user> has to be a user with permission to create surveys;
  • <password> the password for the user;

If you need to see the parameters, you can execute:

php cmdline_importsurvey -h

Import using RemoteControl API

Since LimeSurvey version 2.0, you can import a survey structure by using the RemoteControl 2 API.

Importeren van andere applicaties

We are often getting requests to import a survey from other applications or survey providers. The problem is that providers (like SurveyMonkey) lock you in - it is not possible to export the survey structure (e.g. from SurveyMonkey), but only the response data.