Actions

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

From LimeSurvey Manual

(Created page with "これから、LimeSurveyのインポート機能の代替手段を紹介します。")
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 4: Line 4:
これから、LimeSurveyのインポート機能の代替手段を紹介します。
これから、LimeSurveyのインポート機能の代替手段を紹介します。


=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.
バージョン1.50から1.92までは、コマンドライン(またはシェル)からアンケートをインポートすることができました。この機能を使用するには、シェルにアクセスする必要があり、スクリプトのシェル実行を許可するよう、PHPインタプリターを設定する必要があります。


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:
シェルの"limesurvey/admin"フォルダーに移動して実行します。


  <code>php cmdline_importsurvey <File to import> <nowiki>[</nowiki><user> <password>]</code>
  <code>php cmdline_importsurvey <インポートするファイル> <nowiki>[</nowiki><ユーザー> <パスワード>]</code>


*'''<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:
コマンドパラメーターを確認するには、次のように実行します。


  <code>php cmdline_importsurvey -h</code>
  <code>php cmdline_importsurvey -h</code>


=Import using RemoteControl API=
=リモートコントロールAPIを使ってインポートする=
Since LimeSurvey version 2.0, you can import a survey structure by using the [[RemoteControl_2_API|RemoteControl 2 API]].
LimeSurveyバージョン2.0以降、[[RemoteControl_2_API|リモートコントロール 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.
他のアプリケーションやアンケートプロバイダーから、アンケートのインポートに関する要望がしばしばあります。問題は、プロバイダ(SurveyMonkeyなど)に囲い込まれてしまうことです。SurveyMonkeyなどからアンケート構成をエクスポートすることはできず、回答データのみをエクスポートできます。

Latest revision as of 10:38, 16 June 2018


これから、LimeSurveyのインポート機能の代替手段を紹介します。

コマンドラインユーティリティを使用してインポートする

バージョン1.50から1.92までは、コマンドライン(またはシェル)からアンケートをインポートすることができました。この機能を使用するには、シェルにアクセスする必要があり、スクリプトのシェル実行を許可するよう、PHPインタプリターを設定する必要があります。

この機能は、非常に長いアンケートをウェブでインポートするとき、タイムアウトの問題が発生する場合に役立ちます。

シェルの"limesurvey/admin"フォルダーに移動して実行します。

php cmdline_importsurvey <インポートするファイル> [<ユーザー> <パスワード>]
  • <インポートするファイル>: インポートしたいファイル
  • <ユーザー>: アンケート作成権限のあるユーザー
  • <パスワード>: 該当ユーザーのパスワード

コマンドパラメーターを確認するには、次のように実行します。

php cmdline_importsurvey -h

リモートコントロールAPIを使ってインポートする

LimeSurveyバージョン2.0以降、リモートコントロール 2 APIを使ってアンケートをインポートできます。

他のアプリケーションからアンケートをインポートする

他のアプリケーションやアンケートプロバイダーから、アンケートのインポートに関する要望がしばしばあります。問題は、プロバイダ(SurveyMonkeyなど)に囲い込まれてしまうことです。SurveyMonkeyなどからアンケート構成をエクスポートすることはできず、回答データのみをエクスポートできます。