Here are some of the questions we anticipate some users may have after working with Stack.PHP. If you have a question and it's not answered here, please feel free to email me the question and I'll do my best to answer it here.
I'm a little confused when it comes to the requirements for running Stack.PHP - what are they?
This is often a source of confusion since it depends on what parts of Stack.PHP you are planning to use. The core library (everything included in
api.php) itself requires PHP 5.2+ with the curl extension enabled. The
FilestoreCache class will run on PHP 5.2+ and the
SQLCache class will theoretically run on PHP 5.2+ as well (if the PDO extension is installed). However, there is a bug with the SQLite PDO driver that prevents it from functioning properly in PHP 5.2 (it works fine in PHP 5.3+).
Which cache class is right for me?
Stack.PHP ships with two cache classes:
FilestoreCache class uses the local filesystem for caching data returned by the API and the
SQLCache class uses an SQL database. In most cases, an SQL database is likely the better option (simply due to its improved performance). However, if you do not have access to an SQL database, the filestore cache will still offer reasonable performance. The filestore cache implements atomic file access so that you never need to worry about corruption of the cache index.