@@ -12,7 +12,7 @@ This package is designed to store PHP sessions in a MySQL database so that you c
12
12
13
13
### Installing on your server
14
14
15
- Create a session table in your MySQL database by running [ install/setup.sql] ( install/setup.sql )
15
+ 1 . Create a session table in your MySQL database by running [ install/setup.sql] ( install/setup.sql )
16
16
17
17
```
18
18
CREATE TABLE `likel_sessions` (
@@ -25,29 +25,29 @@ CREATE TABLE `likel_sessions` (
25
25
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
26
26
```
27
27
28
- Move the files under /src into a directory on your server such as "session"
28
+ 2 . Move the files under /src into a directory on your server such as "session"
29
29
30
30
```
31
31
e.g. session/ini, session/models, session/autoload.php, session/example.php
32
32
```
33
33
34
- Move the [ ini/credentials.ini] ( ini/credentials.ini ) file to a location not accessible by the public
34
+ 3 . Move the [ ini/credentials.ini] ( ini/credentials.ini ) file to a location not accessible by the public
35
35
36
36
```
37
37
e.g. $ mv ini/credentials /var/www/html/
38
38
```
39
39
40
- Update the database information in the credentials.ini file
40
+ 4 . Update the database information in the credentials.ini file
41
41
42
- Ensure that when you create a new session you specify the new credentials.ini location
42
+ 5 . Ensure that when you create a new session you specify the new credentials.ini location
43
43
44
44
```
45
45
$session = new Likel\Session\Handler(array(
46
46
'credentials_location' => "/path/to/new/credentials.ini"
47
47
));
48
48
```
49
49
50
- Run [ src/example.php] ( src/example.php ) and check your database for the newly created session
50
+ 6 . Run [ src/example.php] ( src/example.php ) and check your database for the newly created session
51
51
52
52
## Running the tests
53
53
0 commit comments