Actions

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

From LimeSurvey Manual

(Created page with "Ainsi vous pouvez importer des questionnaires de versions précédentes. La fonction d'importation renumérote 'intelligemment' (j'utilise ce terme prudemme...")
(Created page with "===Importation depuis une ligne de commande===")
Line 14: Line 14:
La fonction d'importation renumérote 'intelligemment' (j'utilise ce terme prudemment) les identifiants du questionnaire, des groupes, des questions, des réponses et des conditions de manière à assurer les liens entre ces composants. Référez vous à la section [[Exporter un questionnaire]] pour plus d'informations.
La fonction d'importation renumérote 'intelligemment' (j'utilise ce terme prudemment) les identifiants du questionnaire, des groupes, des questions, des réponses et des conditions de manière à assurer les liens entre ces composants. Référez vous à la section [[Exporter un questionnaire]] pour plus d'informations.


=Import using the commandline utility=
===Importation depuis une ligne de commande===


Since version 1.50 it is possible to import surveys from the command line (or shell). To use this functionality you have to have access to the shell and the PHP interpreter has to be configured to allow shell execution of scripts.
Since version 1.50 it is possible to import surveys from the command line (or shell). To use this functionality you have to have access to the shell and the PHP interpreter has to be configured to allow shell execution of scripts.

Revision as of 00:04, 13 April 2013

Importation depuis l'écran d'administration

Si vous avez précédemment exporté un questionnaire, vous pouvez alors l'importer depuis l'écran "Créer un nouveau questionnaire".

Cliquez sur le bouton "Parcourir" pour sélectionner le fichier SQL ou CSV, puis cliquez sur le bouton d'importation. Le processus d'importation est capable de lire les formats de fichiers suivants:

  • fichiers .SQL créés par LimeSurvey (PHPSurveyor) v0.98 - v1.0
  • fichiers .CSV créés par LimeSurvey (PHPSurveyor) v1.45 ou plus

Ainsi vous pouvez importer des questionnaires de versions précédentes.

La fonction d'importation renumérote 'intelligemment' (j'utilise ce terme prudemment) les identifiants du questionnaire, des groupes, des questions, des réponses et des conditions de manière à assurer les liens entre ces composants. Référez vous à la section Exporter un questionnaire pour plus d'informations.

Importation depuis une ligne de commande

Since version 1.50 it is possible to import surveys from the command line (or shell). To use this functionality you have to have access to the shell and the PHP interpreter has to be configured to allow shell execution of scripts.

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, in the shell go to the limesurvey/admin folder and execute:

php cmdline_importsurvey <File to import> [<user> <password>]

  • <File to import> has to be one of the described above
  • <user> has to be a user with the right to create surveys
  • <password> the password for the user
    *<user> and <password> are only required if the control access is active

If you need to see the parameters you can execute:

php cmdline_importsurvey -h

Importing surveys from other applications

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 from SurveyMonkey, only the response data. So you can see that using non-open propietary software or providers can be a bad idea in the first place.