PHP: Load Lectora SCORM Module - php

How would I go about loading a module created with Lectora, with PHP? I can't seem to find any good tutorials. Using an LMS like Moodle is out the question unfortunately. The module is in the form of a .zip file.

Based on your response in the comments and assuming the instructional designer creating the course publishes the course using the HTML option than the zip file will just contain standard html, JavaScript and image files. You can just use standard tools to unzip the package and FTP or copy the files to the web server and do not need any special tools or scripts on the server side to unpackage the course. A published Lectora HTML course will have an index.html at the root of the package that you will want to link to when launching the course. Hope this helps.

Related

Github Pages shows blank page when launching a website

My repo: https://github.com/JainUmang/jainumang.github.io
My website: https://jainumang.github.io /
I can not figure out why my GitHub pages can’t load any of my source files. I want to load the index[dot]php file. Everything works as it should on localhost. It only loads readme. If someone could help me with it. I'm new to this.
I did not work with Github Pages, but looking at the documentation, they do not support PHP files, as they only support static files. You can use Markdown or HTML files, or instead, static files can be generated using Jekyll.
If you do want to add dynamic functionality, you could probably use an iframe. However, anything displayed in that iframe should be hosted elsewhere.
Github is just a repository site there is no deployment or any such server side scripting platform.
You cannot run any server side script on github yaah you may view HTML file.
Try hosting your site/project on some hosting sites like
000webhost
heroku etc

PHP content management system which tracks content through git

Are there any content management systems which use git for tracking content and support markdowns? I have heard of git-blog and WiGit , any other suggestions would be appreciated.
Take a look at Phrozn: http://www.phrozn.info/en/ - it's pretty much a port of Jekyll to PHP.
I made Orbiter (on GitHub) for creating simple websites out of markdown documents via PHP. It uses Mustache for templating and supports Markdown by default. It uses plain text files as source documents so you can use both Git and Dropbox for syncing the documents. It is also dynamic, which means you don't have to manually "generate" your website after every update.

hosting PHP application within moodle LMS

Good day, I would like to know if there is a way to run a php application within the moodle LMS.
Prior to implementation in php, the information was in the form of static html documents, which were simply uploaded into folder and accessing the files gave the appearance of a site hosted within moodle.
Can such a functionality be replicated using PHP files that require service processing for desired features.
If not what are the best options for giving users a similar experience.
thanks
You can use plugins(Blocks or Module) to develop applications within Moodle. The pre-condition is that you need to follow Moodle programming guidelines to create a plugin.
More details here:
http://docs.moodle.org/dev/Modules
http://docs.moodle.org/dev/Blocks
However, you need to decide whether you need a Block or an Activity Module and it can be determined only after seeing the requirements.

Web-based online file editing with revision control built in?

Does anyone know of a simple online file editor that I could put in a folder on the server to enable users to view and modify files? It would have read/write access to source code files (html & css) and open those up in a web-based code editor.
Then when they save it, it would need to have a hook to be able to commit the changes back to whatever revision control system is in place.
Basically I need github.com's capability to edit files that are in a repository without checking the project out.
PHP would probably be the easiest to be able to just drop into a folder, but whatever works.
The Github wiki is open source: https://github.com/github/gollum - it stores the files in the git repository. I don't know of a pure file editor, though.

How to create pdf files in drupal?

I want to create pdf files in drupal .module file.
I have view of bulk operations in which I have added an operation send pdf file and download pdf file.
I want to get some data from the database and and create a pdf file from it and when I select an operations it should create and send the pdf file in an email.
So how could I do this???
You should look first in the PHP library for creating PDF files. You can use TCPDF or many others in the PHP libraries:
https://stackoverflow.com/questions/560583/which-is-the-best-pdf-library-for-php
After doing a quick search at Drupal Modules I found this module. And I also found this by Googling. The latter one seems to need no additional PHP modules and should be easy to integrate.
There is a new module named PHP WK HTML to PDF
From his site:
This is intended for module developers, nothing is usable from the
front-end.
This module is a Drupal Library implementation for the PHPWkHtmlToPdf
wrapper and as a result is extremely small because it uses WkHtmlToPdf
to do the heavy work.
And you can use if you want Views PDF
With this module you can output a view as a PDF document. Each field
of the view can be placed on the PDF page directly in the
administration interface. Therefore a new display called "PDF" is
added.
You should use the module print. This module allow you to print a node but also any page of your site. After enable the module you can generate pdf simply by visiting url starting with printpdf/NID or printpdf/AnyPAth.
To generate the pdf it can use the following libraries: dompdf, TCPDF, wkhtmltopdf.
Follow the installation guide
TCPDF is good for pdf creation.
There is new module TCPDF. See tcpdf_example submodule to get started.
For installation see INSTALL.txt:
Download and install libraries module.
Download TCPDF library from http://sourceforge.net/projects/tcpdf/files/
Extract it to sites/all/modules/libraries.
Download and install TCPDF module.
Check the status report to verify if the installation was successful.
Have fun.
I had a very intricately styled view recently that I just couldn't get looking the same as a pdf, I used this service to do it and I was pretty impressed. http://www.html2pdfrocket.com/

Categories