We have developed an internal tracking/reporting system and I am looking to pass a quiz score from Articulate Storyline published as HTML5 to PHP using Post method. Once I get it top PHP, I can handle saving it to the MySQL database.
Has anyone been able to pass the Score variable (and name, email) to a PHP file?
Tracking results in a text file or database isn't supported by Articulate. Hopefully some of your colleagues will be able to chime in and assist you here.
I've used this method but am experiencing some problems.
My Storyline output is published on a website and it works flawlessly but only from the computer which I've used to create the Storyline product. The web address I'm using when creating the webobject is pointing to folder on my local machine. It contains te necesarry files (.html, .js, .php). After inserting the webobject into the Storyline slide I find the files to be copied to a local directory of the output structure (something like: ....\My Articulate Projects\De leffert FM-50 configurator v1.2 - Storyline output\story_content\WebObjects). I assumed the webobject would use these local files using an internal reference so it's independent of the computer it's being used. Am I wrong?
Hi Russel, i know this was a year ago but I've just come across the thread.
Great little example script, works well to start in the right direction for what we are wanting to do we just need to get the php to shoot the data off to where its needed.
Any idea how to get this to run on a local machine ? on a server it works fine, but locally when it prompts for saving the php file and stops there.
This is not something I could assist in supporting, but I did want to let you know that you are welcome to reach out to the user directly via the 'Contact Me' option on the user profile if you do not hear back soon.
PHP is code that gets executed server side. There is a way to get PHP to run on your machine.
When developing in PHP and MySQL, I usually work locally on my machine by installing WampServer.
WampServer is a free application. It is a web development environment for Apache, MySQL and PHP. I create the same MySQL database on my computer that is used on the Server.
This way I can code and test locally on my machine. When ready, I just have to change the PHP connect string for the server MySQL database and then upload.
11 Replies
Hi Jeff!
Tracking results in a text file or database isn't supported by Articulate. Hopefully some of your colleagues will be able to chime in and assist you here.
Hello Jeff,
Hopefully this will work for you. I created a WebObject that sends the data to php. The WebObject is on the Results Slide.
Thanks for popping in to share Russell!
Many thanks will give it a try!!!!
Dear reader,
I've used this method but am experiencing some problems.
My Storyline output is published on a website and it works flawlessly but only from the computer which I've used to create the Storyline product. The web address I'm using when creating the webobject is pointing to folder on my local machine. It contains te necesarry files (.html, .js, .php). After inserting the webobject into the Storyline slide I find the files to be copied to a local directory of the output structure (something like: ....\My Articulate Projects\De leffert FM-50 configurator v1.2 - Storyline output\story_content\WebObjects). I assumed the webobject would use these local files using an internal reference so it's independent of the computer it's being used. Am I wrong?
Regards,
Geert Jan
I got it to work and I think I know now. An internal reference to the local content is created.
No need for further response.
Thanks for the update Geert :) Glad you were able to get that figured out.
Hi Russel, i know this was a year ago but I've just come across the thread.
Great little example script, works well to start in the right direction for what we are wanting to do we just need to get the php to shoot the data off to where its needed.
Any idea how to get this to run on a local machine ? on a server it works fine, but locally when it prompts for saving the php file and stops there.
Would this, or java be a better method for getting variables to a mysql DB ?
Hi Troy and welcome to E-Learning Heroes :)
This is not something I could assist in supporting, but I did want to let you know that you are welcome to reach out to the user directly via the 'Contact Me' option on the user profile if you do not hear back soon.
Hello Troy,
PHP is code that gets executed server side. There is a way to get PHP to run on your machine.
When developing in PHP and MySQL, I usually work locally on my machine by installing WampServer.
WampServer is a free application. It is a web development environment for Apache, MySQL and PHP. I create the same MySQL database on my computer that is used on the Server.
This way I can code and test locally on my machine. When ready, I just have to change the PHP connect string for the server MySQL database and then upload.
This discussion is closed. You can start a new discussion or contact Articulate Support.