10 More Discussions You Might Find Interesting
1. Ubuntu
Hi
1- I want to create a cd or dvd of ubunto , that include a lot of installed packages entered by me .
2- automated installion (just enter the cd )and install by it self . (3 Replies)
Discussion started by: rashed
3 Replies
2. UNIX for Dummies Questions & Answers
I am new to ubunto and have had previous security issues with windows. How hard is it to use a broadband to go USB device on a Dell laptop with ubuntu 10.10. Are there certain procedures to follow to secure this type of connection or is it by nature a fairly hackable system for a determined... (0 Replies)
Discussion started by: Chod1964
0 Replies
3. Ubuntu
i want to install Neye program in ubunto 10.10
and deal with SQLite database
can anyone help me
thanks (1 Reply)
Discussion started by: mahmoudwassouf
1 Replies
4. Ubuntu
Hi
I have dual operating system i.e Win XP and KUBUNTU. Now my windows XP is corrupted and i want to reinstall Win XP. So i just want to know Shall i have to reinstall Linux also or i can only reinstall win xp without affecting linux installation.
Thanks
Sarbjit (3 Replies)
Discussion started by: sarbjit
3 Replies
5. Linux
Hi all,
I wanted to install the latest version of firefox 2 but it seems when I attempt to install it, it seems to be saying it is looking for c libraries version 2.3? I believe I currently have an older version of the c libraries. I am currently running Sun's JDS Linux 2003. My Mozilla web... (1 Reply)
Discussion started by: scriptingmani
1 Replies
6. AIX
Question from an AIX noob --
I recently installed an AIX box with what I thought was recent 5.3 media. After the install it was at ML 5300-00.
My question is, it seems as if each ML/TL needs to be installed prior to the next - which currently makes 6(?) updates. Am I missing something - is... (4 Replies)
Discussion started by: tb0ne
4 Replies
7. Debian
I just reformatted my computer because of a bad tip I and I installed only the base-system to add what I'd want later. My question is how/where can I get a good X-server for Debian? I'm so used to gnome and don't really like it and want to try something else. I heard about something called: Xfree... (1 Reply)
Discussion started by: riwa
1 Replies
8. Linux
Yea, im having a little confusion towards installing red-hat using promise controllers. It was more easy with Windows cause it prompts me and i just press F6 at the beginning of the installation and then it gives me the list of the controllers i need (from a floppy). I tried using the noprobe on... (5 Replies)
Discussion started by: kyoist
5 Replies
9. AIX
hi, everybody£º
i have a question, pls help me¡£
OS : RS/6000 AIX 4.3.3
cPU : Powerpc,POWER3
I install X11.Dt, X11.apps, X11.base, X11.compat, X11.motif, X11.vsm full and Optional install X11.fnt using smitty!
When i compling my gui programs , i found that all the include file of ... (1 Reply)
Discussion started by: q30
1 Replies
10. UNIX for Dummies Questions & Answers
hey
i want to install freebsd 5.1 but i ran into some problems
i have a old cpu, i made boot disks from kern.flp and mfsboot.flp from the cd, and boot up, when i'm done and gonna install, it won't find the cd, then i tryed to installed with ftp, but i coulden't figure out how to do, i have a DHCP... (5 Replies)
Discussion started by: ekizz
5 Replies
SQLITE_OPEN(3) SQLITE_OPEN(3)
sqlite_open - Opens an SQLite database and create the database if it does not exist
SYNOPSIS
resource sqlite_open (string $filename, [int $mode = 0666], [string &$error_message])
DESCRIPTION
Object oriented style (constructor): SQLiteDatabase::__construct (string $filename, [int $mode = 0666], [string &$error_message])
Opens an SQLite database or creates the database if it does not exist.
PARAMETERS
o $filename
- The filename of the SQLite database. If the file does not exist, SQLite will attempt to create it. PHP must have write permis-
sions to the file if data is inserted, the database schema is modified or to create the database if it does not exist.
o $mode
- The mode of the file. Intended to be used to open the database in read-only mode. Presently, this parameter is ignored by the
sqlite library. The default value for mode is the octal value 0666 and this is the recommended value.
o $error_message
- Passed by reference and is set to hold a descriptive error message explaining why the database could not be opened if there was
an error.
RETURN VALUES
Returns a resource (database handle) on success, FALSE on error.
EXAMPLES
Example #1
sqlite_open(3) example
<?php
if ($db = sqlite_open('mysqlitedb', 0666, $sqliteerror)) {
sqlite_query($db, 'CREATE TABLE foo (bar varchar(10))');
sqlite_query($db, "INSERT INTO foo VALUES ('fnord')");
$result = sqlite_query($db, 'select bar from foo');
var_dump(sqlite_fetch_array($result));
} else {
die($sqliteerror);
}
?>
NOTES
Tip
On Unix platforms, SQLite is sensitive to scripts that use the fork() system call. If you do have such a script, it is recommended
that you close the handle prior to forking and then re-open it in the child and/or parent. For more information on this issue, see
The C language interface to the SQLite library in the section entitled Multi-Threading And SQLite.
Tip
It is not recommended to work with SQLite databases mounted on NFS partitions. Since NFS is notoriously bad when it comes to lock-
ing you may find that you cannot even open the database at all, and if it succeeds, the locking behaviour may be undefined.
Note
Starting with SQLite library version 2.8.2, you can specify :memory: as the $filename to create a database that lives only in the
memory of the computer. This is useful mostly for temporary processing, as the in-memory database will be destroyed when the process
ends. It can also be useful when coupled with the ATTACH DATABASE SQL statement to load other databases and move and query data
between them.
Note
SQLite is safe mode and open_basedir aware.
SEE ALSO
sqlite_popen(3), sqlite_close(3), sqlite_factory(3).
PHP Documentation Group SQLITE_OPEN(3)