Alternatives to the LimeSurvey import function/zh-hant: Difference between revisions
From LimeSurvey Manual
m (FuzzyBot moved page Importing a survey structure/zh-hant to Alternatives to the LimeSurvey import function/zh-hant without leaving a redirect: Part of translatable page "Importing a survey structure".) |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages /> | <languages /> | ||
=Import using the commandline utility= | |||
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. | |||
From version 1.50 to 1.92 it was possible to import surveys from the command line (or shell). To use this functionality you | |||
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. | ||
To use it, | To use it, go to the limesurvey/admin folder in the shell and execute: | ||
php cmdline_importsurvey <File to import> <nowiki>[</nowiki><user> <password>] | <code>php cmdline_importsurvey <File to import> <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; | ||
*<user> has to be a user with permission to create surveys | *<user> has to be a user with permission to create surveys; | ||
*<password> the password for the user | *<password> the password for the user; | ||
If you need to see the parameters you can execute: | If you need to see the parameters, you can execute: | ||
php cmdline_importsurvey -h | <code>php cmdline_importsurvey -h</code> | ||
=Import using RemoteControl API= | =Import using RemoteControl API= | ||
Since LimeSurvey version 2.0 you can import a survey structure by using the [[RemoteControl_2_API|RemoteControl 2 API]]. | Since LimeSurvey version 2.0, you can import a survey structure by using the [[RemoteControl_2_API|RemoteControl 2 API]]. | ||
=Importing surveys from other applications= | =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 | 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. |
Revision as of 18:05, 15 September 2017
Import using the commandline utility
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.
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 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.
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 (e.g. from SurveyMonkey), but only the response data.