small error in /opt/lampp/htdocs/xampp/phonebook.php
Posted: 05. July 2014 20:19
After installing XAMPP, the "Phone Book" demo in "http://localhost/xampp/" doesn't work.
(the error is:
Operating System: Linux Mint 17
XAMPP version: x64 1.8.3-4
This fixed it:
Thanks for XAMPP.
Bye,
Claudio
(the error is:
- Code: Select all
no such table: users in /opt/lampp/htdocs/xampp/phonebook.php on line 69
Operating System: Linux Mint 17
XAMPP version: x64 1.8.3-4
This fixed it:
- Code: Select all
$ diff /opt/lampp/htdocs/xampp/phonebook-wrong.php /opt/lampp/htdocs/xampp/phonebook.php
34c34
< if(!($db=new SQLite3('sqlite/phonebook.sqlite3', '0666')))
---
> if(!($db=new SQLite3('sqlite/phonebook.sqlite3', SQLITE3_OPEN_READWRITE)))
Thanks for XAMPP.
Bye,
Claudio