mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 17:08:54 +00:00
Commit some minor stuff I did on the plane
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@29927 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
90a8ec582e
commit
532b86ba1a
2 changed files with 15 additions and 5 deletions
|
@ -2,6 +2,14 @@
|
|||
<title>GNU Gettext</title>
|
||||
<titleabbrev>gettext</titleabbrev>
|
||||
|
||||
<partintro>
|
||||
<simpara>
|
||||
The gettext functions implement a NLS (Native Language Support)
|
||||
API which can be used to internationalize your PHP applications.
|
||||
Please see the GNU gettext documentation for a thorough explanation
|
||||
of these functions.
|
||||
</simpara>
|
||||
</partintro>
|
||||
<refentry id="function.bindtextdomain">
|
||||
<refnamediv>
|
||||
<refname>bindtextdomain</refname>
|
||||
|
|
|
@ -249,8 +249,7 @@ $c1 = ocilogon("scott","tiger",$db);
|
|||
$c2 = ocilogon("scott","tiger",$db);
|
||||
|
||||
function create_table($conn)
|
||||
{ $stmt = ociparse($conn,"create table scott.hallo (test
|
||||
varchar2(64))");
|
||||
{ $stmt = ociparse($conn,"create table scott.hallo (test varchar2(64))");
|
||||
ociexecute($stmt);
|
||||
echo $conn." created table\n\n";
|
||||
}
|
||||
|
@ -262,7 +261,8 @@ function drop_table($conn)
|
|||
}
|
||||
|
||||
function insert_data($conn)
|
||||
{ $stmt = ociparse($conn,"insert into scott.hallo values('$conn' || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))");
|
||||
{ $stmt = ociparse($conn,"insert into scott.hallo
|
||||
values('$conn' || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))");
|
||||
ociexecute($stmt,OCI_DEFAULT);
|
||||
echo $conn." inserted hallo\n\n";
|
||||
}
|
||||
|
@ -417,7 +417,8 @@ function drop_table($conn)
|
|||
}
|
||||
|
||||
function insert_data($conn)
|
||||
{ $stmt = ociparse($conn,"insert into scott.hallo values('$conn' || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))");
|
||||
{ $stmt = ociparse($conn,"insert into scott.hallo
|
||||
values('$conn' || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))");
|
||||
ociexecute($stmt,OCI_DEFAULT);
|
||||
echo $conn." inserted hallo\n\n";
|
||||
}
|
||||
|
@ -635,7 +636,8 @@ Upload file: <input type="file" name="lob_upload"><br>
|
|||
// $lob_upload contains the temporary filename of the uploaded file
|
||||
$conn = OCILogon($user, $password);
|
||||
$lob = OCINewDescriptor($conn, OCI_D_LOB);
|
||||
$stmt = OCIParse($conn,"insert into $table (id, the_blob) values(my_seq.NEXTVAL, EMPTY_BLOB()) returning the_blob into :the_blob");
|
||||
$stmt = OCIParse($conn,"insert into $table (id, the_blob)
|
||||
values(my_seq.NEXTVAL, EMPTY_BLOB()) returning the_blob into :the_blob");
|
||||
OCIBindByName($stmt, ':the_blob', &$lob, -1, OCI_B_BLOB);
|
||||
OCIExecute($stmt);
|
||||
if($lob->savefile($lob_upload)){
|
||||
|
|
Loading…
Reference in a new issue