Actions

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

From LimeSurvey Manual

(Created page with "La pagina seguente presenta alternative alla funzione di importazione di LimeSurvey.")
(Created page with "=Importa utilizzando l'utilità della riga di comando=")
Line 4: Line 4:
La pagina seguente presenta alternative alla funzione di importazione di LimeSurvey.
La pagina seguente presenta alternative alla funzione di importazione di LimeSurvey.


=Import using the commandline utility=  
=Importa utilizzando l'utilità della riga di comando=  


From version 1.50 to 1.92 it was possible to import surveys from the command line (or shell). To use this functionality, you need to have access to the shell and the PHP interpreter has to be configured to allow shell execution of scripts.
Dalla versione 1.50 alla 1.92 era possibile importare i rilievi dalla riga di comando (o dalla shell). Per utilizzare questa funzionalità, è necessario avere accesso alla shell e l'interprete PHP deve essere configurato per consentire l'esecuzione di script da parte della shell.


This functionality is useful when you have timeout problems with the web version that could happen when you have very long surveys to import.
This functionality is useful when you have timeout problems with the web version that could happen when you have very long surveys to import.

Revision as of 07:50, 27 July 2023


La pagina seguente presenta alternative alla funzione di importazione di LimeSurvey.

Importa utilizzando l'utilità della riga di comando

Dalla versione 1.50 alla 1.92 era possibile importare i rilievi dalla riga di comando (o dalla shell). Per utilizzare questa funzionalità, è necessario avere accesso alla shell e l'interprete PHP deve essere configurato per consentire l'esecuzione di script da parte della shell.

This functionality is useful when you have timeout problems with the web version that could happen when you have very long surveys to import.

To use it, go to the "limesurvey/admin" folder in the shell and execute:

php cmdline_importsurvey <File to import> [<user> <password>]
  • <File to import>: has to be the one you wish to import.
  • <user>: has to be a user that holds the 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.

Import surveys from other applications

We often get 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.