SPCS: Simple PHP Content Server for Calibre

For all you Calibre users, SPCS, or Simple PHP Content Server, is a PHP based content server that reads directly from the Calibre metadata.db file.

Features include:

  • Support in most major desktop, mobile and Kindle browsers
  • Built-in multi-user login functionality allowing for direct book download to Kindle and Android devices
  • “Send-to” functionality to support Whispersync with Amazon’s Personal Documents feature
  • No need to have Calibre running
  • Sortable results
  • Cover display

Usage/Installation

Installation is simple and straightforward:

  1. Extract the archive to any folder on a system running PHP. Ensure Pear Mail tools are installed.
  2. Edit /include/config.php to your liking.
  3. Ensure the metadata.db file AND the folder it resides in is writable by the Apache/IIS user.
  4. Visit https://<server>/<installfolder>/setup.php to install. This will create a new table (spcs) in your Calibre database with a user “admin” and password “password”.
  5. Visit https://<server>/<installfolder> and login as “admin” with password “password”.
  6. Go to settings to change password and Kindle email address.
  7. Other users can be set up by using a Sqlite editor like Sqlite Database Browser. Just add a row with a username and blank password, and change it on first login.

NOTE: Downloading with “Basic Authentication” causes problems, thus the included login interface. However, we STRONGLY recommend you force HTTPS/SSL to secure your passwords. Also, this application has NOT undergone strict security testing.

Please pose any questions or discussion to the thread at: http://www.mobileread.com/forums/showthread.php?t=203177

Configuration

The following variables should be edited before running setup.php for the first time.

Sets the number of results per page:

   $results_per_page = 20;

The location of your Calibre DB file (This can be a copy):

   $calibre_db = "/files/eBooks/metadata.db";

The location of your books library (include trailing slash):

   $books_folder = "/files/eBooks/";

Set this to the book type you wish to use (file extension, all lower case):

   $book_type = "mobi";

The email address books are sent from (Ensure this is validated in your Kindle settings):

   $from = "myemail@gmail.com";

The server to send emails through:

$config=array(
'host'      => 'ssl://smtp.googlemail.com',
'port'      => 465,
'auth'      => true,
'username'  => 'user',
'password'  => 'password'
);

To-Do

  • Multi-format book download/send
  • Administration console for users
  • Full security test

Change Log

v0.04

  • CSS fix for latest Android Chrome

v0.03

  • Misc. bug fixes
  • Added PDF backup for if primary format isn’t found but PDF is
  • Added “Added” sort, for sorting by books modified or added latest
  • Added “NEW” banner for books added or modified in past week

v0.02

  • Kindle stylesheet fixes

v0.01

  • Release

Download

Please do not distribute SPCS outside of this site.  Directing links here will ensure the latest version of SPCS is always in circulation.

Download the latest version: spcs.0.04.zip

Remember to check out the rest of the site!

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

One Response to “SPCS: Simple PHP Content Server for Calibre”

[...] out the SPCS Page for more details, screenshots, and download. Tags: android, ben.curtis, calibre, kindle [...]


Leave a Reply

 





Following the hottest hardware and software for today's digital junkie.

Off the wall articles and interviews from the technology sector.

The latest happenings in the technology industry.

Techviews Random Bits News Tools

Help us out, become a fan!

We provide tools such as the Registry Changer and MythMediaMonitor along with current news and reviews free of charge to our audience. To help keep us going, please take a brief moment to follow us on any of the networks you have an account on.




We've detected an Ad-Blocker

It appears as though you are using an ad blocking program. Sites like nowsci.com are only able to provide content for free with support from our sponsors.

Please consider disabling your ad blocking program on our site. Thank you.