From 532b86ba1a4cfebb63c40da1757c7f7f3214050b Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Tue, 8 Aug 2000 23:57:55 +0000 Subject: [PATCH] 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 --- functions/gettext.xml | 8 ++++++++ functions/oci8.xml | 12 +++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/functions/gettext.xml b/functions/gettext.xml index 7f0ea4360c..ecc0d8e95a 100644 --- a/functions/gettext.xml +++ b/functions/gettext.xml @@ -2,6 +2,14 @@ GNU Gettext gettext + + + 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. + + bindtextdomain diff --git a/functions/oci8.xml b/functions/oci8.xml index 0aca44e6a6..cf8e93aea1 100644 --- a/functions/oci8.xml +++ b/functions/oci8.xml @@ -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)){