close
在 Ubuntu 下要用到 php & sqlite 時
只要鍵入
apt-get install apache2 php5 php5-sqlite
apache 的 www 目錄在 /var/www/ 下
會自動抓取 index.html & index.php
在操作 sqlite 時
sqlite_open & sqlite_close 是不會有讀寫的動作的
但在 sqlite_query 這類的指令時 就會有讀寫的動作
所以要在 sqlite 的檔案上按右鍵 選Properties
選 Permission 在 Others 裡的 Access 選 Read and Write
在外面的資料夾的 Others 的 Folder access: 也要選 create and delete files
如果沒有選會open database error
全站熱搜