small error in /opt/lampp/htdocs/xampp/phonebook.php

Problems with the Linux version of XAMPP, questions, comments, and anything related.

small error in /opt/lampp/htdocs/xampp/phonebook.php

Postby ngrcld » 05. July 2014 20:19

After installing XAMPP, the "Phone Book" demo in "http://localhost/xampp/" doesn't work.
(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
ngrcld
 
Posts: 1
Joined: 05. July 2014 20:09
Operating System: Linux Mint 17

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 6 guests