Cap9. Can I call a .PHP file from within Captivate?
Hello,
Captivate 9. Output as HTML5 only. No Quizes. Not Responsive. Runs on LAMP server. No LMS.
I need a txt file on the server to record the Date and Time that a particular slide is viewed.
I already have a tiny PHP file that I use elsewhere that records the Date and Time in a server txt file, but I need this to be called from Captivate.
I looked on the internet for some Javascript code that could call the .PHP, but unfortunately the Javascript does not work.
My questions are:
- Is it possible to do what I want?
- Is the combination of Java + PHP the correct route?
Any advice will be much appreciated.
Thank you.
Peter.
This is the .PHP I need to call.
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<?php
$fileLOG = fopen("./myfolder/viewed.csv", "a");
fwrite($fileLOG, date("Y/m/d,H:i:s") . "," . "test" . "\n");
fclose($fileLOG);
?>
<title></title>
</head>
<body>
</body>
</html>
