scriptingrt.php and Stroop: data writing failure?

62 views
Skip to first unread message

Rachel Meng

unread,
May 23, 2014, 2:09:51 PM5/23/14
to scrip...@googlegroups.com
Hello!

I would like to run a Stroop task (the color version) via Qualtrics for an experiment, and scriptingRT seemed like the way to go. The manual has been immensely helpful.

Anyhow, I've set up my own server (via Amazon EC2) and have put the swf file as well as the php file there. In the .mxml file, I pointed the "outputurl" path to my server and compiled with flex 4.6 and scriptingrt0352. But, the data do not seem to be writing at all -- I suspect the problem lies with the scriptingrt.php script (and not the server), but, being inexperienced with php, I haven't had much luck with debugging.  (I keep on getting the "failure" error message instead.)

I'm probably missing something very obvious... In any case, any help would be terrific. Many thanks!

I've created a short version of the Stroop task for testing (colortest.mxml), and have attached this plus the flash and php files. Let me know if you'd like anything else.

Appreciatively,
Rachel
colortest.mxml
colortest.swf
scriptingrt.php

ALBERTO MIRISOLA

unread,
May 23, 2014, 2:43:24 PM5/23/14
to scrip...@googlegroups.com
Dear Rachel,
I think that the problem is in your server. I compiled your mxml for my server and it worked writing the .csv file.
Indeed, the failure message is a print failure message of the scriptingrt.php file.
In attachment the output of your script.

Cheers,
Alberto

 
colortest0.1.csv

Rachel Meng

unread,
Jun 13, 2014, 1:03:53 PM6/13/14
to scrip...@googlegroups.com
Hi all,

Thanks to everyone who helped! In case anybody ever encounters a similar problem (e.g., if you've set up your server on Amazon), the issue has been resolved. Here are the steps that worked for me:

(1) Included a crossdomain.xml policy file (attached) in the server to resolve permission issues with Adobe Flash.
(2) Slightly modified the php script (attached) to break after fopen()
(3) Wrote an empty *.csv file where the data are recorded (e.g., 'touch name-of-file0.1.csv') 

Best,
Rachel
crossdomain.xml
scriptingrt.php
Message has been deleted
Message has been deleted

Jin Xu

unread,
Mar 19, 2015, 6:13:12 AM3/19/15
to scrip...@googlegroups.com
Dear Meng,

Hope this post find you well.

This is Jin, and I'm working on the same thing as you for my project.

However, I have a quick question about the system you use. Which system did you use for the Stroop test on AWS? Linux or Windows?

Looking forward to hearing from you
Jin
Reply all
Reply to author
Forward
0 new messages