06-04-2004
one teaching Tip
Student have huge interest about why so many expert choose use UNIX than MS Windows.
I consider that SHARE & OPEN is key point.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I understand that a Here Document will redirect all of the lines between the beginning marker for the here document and the ending marker into the command specified just as if the text were coming from standard input.
I am trying to understand the Here Document with this example:
# Menu file... (3 Replies)
Discussion started by: ericelysia
3 Replies
2. Solaris
I need to use tip from machine A serial port to machine B serial port. Can someone point me to an example of the correct cable to use?
Thanks. (1 Reply)
Discussion started by: dangral
1 Replies
3. Shell Programming and Scripting
I am about to do a script that change the COST so i dont need to change each cost.
The output looks like this.
"OL_ID OL_LINK_COST
----------- ------------
51 10
52 10
53 10
54 10
55 ... (3 Replies)
Discussion started by: maskot
3 Replies
4. Solaris
plz explain TIP in solaris in detail. (11 Replies)
Discussion started by: karman0931
11 Replies
5. Shell Programming and Scripting
Hello,
I'm just starting working on it. I'd like to get a tip
For istance if I have a file like:
a b c
d e f
....
and I wanna get:
1a & 2b & 3c
0d & 8e & 4f
.....
I would like to use sed and come up with a regular expression that works.... (3 Replies)
Discussion started by: Dedalus
3 Replies
6. UNIX for Dummies Questions & Answers
Hi, I am new to Unix. I've started with a book "Unix for Dummies".
Please help, any websites with extensive amount of practice exercises are needed. I need to practice! Also I would appreciate any books that are good for beginners. Thanks to all! (1 Reply)
Discussion started by: zamcruiser
1 Replies
7. Shell Programming and Scripting
How do I find a key word in multiple files.. in a directory.. ?
cat *.doc | grep -i myword? (7 Replies)
Discussion started by: hamon
7 Replies
8. Shell Programming and Scripting
how do i "awk" the date after the from only to compare it on a if statement later .
filename example:
server1-ips-ultranoob-ok_From_2012_21_12-23:40:23_To_2012_21_12-23:49:45.zip
what i want o do is compare only the date from the string in "From_2012_21_12" in this case i only want the... (4 Replies)
Discussion started by: drd0spt
4 Replies
9. Shell Programming and Scripting
Often it has been said that echo is neither portable nor correct.
Here is an input.txt:
line1
line2
-n
line4
-en
line6
-x
line8
Then the following fails with BSD/Linux/bash:
while IFS= read line
do
echo "$line"
done < input.txt
It is elegantly improved by means of an echo... (2 Replies)
Discussion started by: MadeInGermany
2 Replies
LEARN ABOUT PHP
sqlite3.open
SQLITE3.OPEN(3) SQLITE3.OPEN(3)
SQLite3::open - Opens an SQLite database
SYNOPSIS
public void SQLite3::open (string $filename, [int $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE], [string $encryption_key])
DESCRIPTION
Opens an SQLite 3 Database. If the build includes encryption, then it will attempt to use the key.
PARAMETERS
o $filename
- Path to the SQLite database, or :memory: to use in-memory database.
o $flags
- Optional flags used to determine how to open the SQLite database. By default, open uses SQLITE3_OPEN_READWRITE |
SQLITE3_OPEN_CREATE.
o SQLITE3_OPEN_READONLY: Open the database for reading only.
o SQLITE3_OPEN_READWRITE: Open the database for reading and writing.
o SQLITE3_OPEN_CREATE: Create the database if it does not exist.
o $encryption_key
- An optional encryption key used when encrypting and decrypting an SQLite database.
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
SQLite3.open(3) example
<?php
/**
* Simple example of extending the SQLite3 class and changing the __construct
* parameters, then using the open method to initialize the DB.
*/
class MyDB extends SQLite3
{
function __construct()
{
$this->open('mysqlitedb.db');
}
}
$db = new MyDB();
$db->exec('CREATE TABLE foo (bar STRING)');
$db->exec("INSERT INTO foo (bar) VALUES ('This is a test')");
$result = $db->query('SELECT bar FROM foo');
var_dump($result->fetchArray());
?>
PHP Documentation Group SQLITE3.OPEN(3)