root/trunk/README
| Revision 406, 1.8 KB (checked in by noccy, 7 months ago) | |
|---|---|
|
|
ReadMe for Lepton/PHP
Setting up
To set up Lepton, follow these instructions. By default the essential files are located in the support folder, so fire up your shell (or your file manager of choice) and get started:
- Copy the "index.sample" file from the support folder into the root of your installation. Rename this file "index.php"
- Copy the "htaccess.sample" file from the support folder into the root of your installation. Rename this file ".htaccess".
- Copy the "core.example.php" file from the lepton folder into the root of your installation. Rename this file "core.php".
- Open the "core.php" file in your text editor of choice and edit it to fir your needs.
- Navigate to your website, and you should be greeted with the hello world page.
System Requirements
- A webserver with PHP 5.0 or later.
Library Requirements
- php5-mysql - For the MySQL connections (using the MySQLi Driver)
- php5-gd - For image manipulation, thumbnailing etc.
- php5-mcrypt - For hashing and encryption
- php5-curl - For HTTP requests and more advanced Internet functionality.
These libraries should be available in your distributions packet management system. For Windows-specific install instructions, see the PHP documentation.
Using Google Analytics
To make use of Google Analytics you need to insert an event the header of all your views. This invocation should look like:
<? Events::invoke(Event::RENDER_HEAD) ?>
This will insert the Google Analytics tracker script into your page. Just remember to edit the configuration and uncomment the ganalytics library in your core.php file.
More information
For up to date information visit http://trac.noccy.com/lepton-php/ where you can also file bug reports and get assistance in the forums.
