Note: This documentation is for Moodle 2.7. For up-to-date documentation see readfile.

readfile: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 1: Line 1:
==Introduction==
Readfile.php is a simple script [http://tracker.moodle.org/secure/attachment/17679/readfile.zip| found here] developed by the Project Gutenberg webmaster for paginating PG texts.  It will provide constant absolute pagination as long as yur text does not change, and of course you can add header and footer links as your heart desires.  While there are a number of much more sophisticated applications for accomplishing such tasks now available,  this elegant little script may be just what you are looking for
Readfile.php is a simple script [http://tracker.moodle.org/secure/attachment/17679/readfile.zip| found here] developed by the Project Gutenberg webmaster for paginating PG texts.  It will provide constant absolute pagination as long as yur text does not change, and of course you can add header and footer links as your heart desires.  While there are a number of much more sophisticated applications for accomplishing such tasks now available,  this elegant little script may be just what you are looking for
==Current Usage==
Some of the discussion on trying to use etexts with Moodle has already brushed up against Project Gutenberg,  but has looked at downloading versions for ePUB, Mobi, etc.  While we probably can all agree that we should be able to obtain static pagination no matter where the file resides, my purpose in sharing readfile is to simply demonstrate how it can be used to accomplish this for online texts (making changes to address local versions, or using a local app to parse online texts, is a "next step.)
So I invite those interested to explore the use of readfile.php by viewing one of my favorties, Lysistrata via this link: http://www.gutenberg.org/catalog/world/readfile?fk_files=746769
==Moodle Usage==


Of course, the script was intended to target texts in a database, so you can use it to target texts already in PG's database (fk_files is the primary key of the files table in the PG catalog database and the files table contains all files' path, last changed date, size, checksums etc.), you can alter to target some other db, or you could modify to target material in moodledata or elsewhere.
Of course, the script was intended to target texts in a database, so you can use it to target texts already in PG's database (fk_files is the primary key of the files table in the PG catalog database and the files table contains all files' path, last changed date, size, checksums etc.), you can alter to target some other db, or you could modify to target material in moodledata or elsewhere.

Revision as of 18:43, 16 June 2009

Introduction

Readfile.php is a simple script found here developed by the Project Gutenberg webmaster for paginating PG texts. It will provide constant absolute pagination as long as yur text does not change, and of course you can add header and footer links as your heart desires. While there are a number of much more sophisticated applications for accomplishing such tasks now available, this elegant little script may be just what you are looking for


Current Usage

Some of the discussion on trying to use etexts with Moodle has already brushed up against Project Gutenberg, but has looked at downloading versions for ePUB, Mobi, etc. While we probably can all agree that we should be able to obtain static pagination no matter where the file resides, my purpose in sharing readfile is to simply demonstrate how it can be used to accomplish this for online texts (making changes to address local versions, or using a local app to parse online texts, is a "next step.)

So I invite those interested to explore the use of readfile.php by viewing one of my favorties, Lysistrata via this link: http://www.gutenberg.org/catalog/world/readfile?fk_files=746769

Moodle Usage

Of course, the script was intended to target texts in a database, so you can use it to target texts already in PG's database (fk_files is the primary key of the files table in the PG catalog database and the files table contains all files' path, last changed date, size, checksums etc.), you can alter to target some other db, or you could modify to target material in moodledata or elsewhere.