mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Typo Fixes
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@63803 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
fdcdaa98e0
commit
10844e7633
5 changed files with 23 additions and 23 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.62 $ -->
|
||||
<!-- $Revision: 1.63 $ -->
|
||||
<reference id="ref.image">
|
||||
<title>Image functions</title>
|
||||
<titleabbrev>Image</titleabbrev>
|
||||
|
@ -113,7 +113,7 @@
|
|||
<programlisting>
|
||||
<![CDATA[
|
||||
<?php
|
||||
$size = GetImageSize ("testimg.jpg",&$info);
|
||||
$size = GetImageSize ("testimg.jpg",&$info);
|
||||
if (isset ($info["APP13"])) {
|
||||
$iptc = iptcparse ($info["APP13"]);
|
||||
var_dump ($iptc);
|
||||
|
@ -1744,11 +1744,11 @@ function LoadWBMP ($imgname) {
|
|||
<informalexample>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
if (ImageTypes() & IMG_GIF) {
|
||||
if (ImageTypes() & IMG_GIF) {
|
||||
Header("Content-type: image/gif");
|
||||
ImageGif($im);
|
||||
}
|
||||
elseif (ImageTypes() & IMG_JPG) {
|
||||
elseif (ImageTypes() & IMG_JPG) {
|
||||
... etc.
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@ -3031,7 +3031,7 @@ $im = imagecreate (400, 30);
|
|||
$black = ImageColorAllocate ($im, 0, 0, 0);
|
||||
$white = ImageColorAllocate ($im, 255, 255, 255);
|
||||
ImageTTFText ($im, 20, 0, 10, 20, $white, "/path/arial.ttf",
|
||||
"Testing... Omega: &#937;");
|
||||
"Testing... Omega: Ω");
|
||||
ImageGif ($im);
|
||||
ImageDestroy ($im);
|
||||
?>
|
||||
|
@ -3074,7 +3074,7 @@ ImageDestroy ($im);
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
if (ImageTypes() & IMG_PNG) {
|
||||
if (ImageTypes() & IMG_PNG) {
|
||||
echo "PNG Support is enabled";
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.19 $ -->
|
||||
<!-- $Revision: 1.20 $ -->
|
||||
<reference id="ref.mhash">
|
||||
<title>Mhash Functions</title>
|
||||
<titleabbrev>mhash</titleabbrev>
|
||||
|
@ -32,9 +32,9 @@
|
|||
<?php
|
||||
$input = "what do ya want for nothing?";
|
||||
$hash = mhash (MHASH_MD5, $input);
|
||||
print "The hash is ".bin2hex ($hash)."\n<br>";
|
||||
print "The hash is ".bin2hex ($hash)."<br />\n";
|
||||
$hash = mhash (MHASH_MD5, $input, "Jefe");
|
||||
print "The hmac is ".bin2hex ($hash)."\n<br>";
|
||||
print "The hmac is ".bin2hex ($hash)."<br />\n";
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.45 $ -->
|
||||
<!-- $Revision: 1.46 $ -->
|
||||
<reference id="ref.network">
|
||||
<title>Network Functions</title>
|
||||
<titleabbrev>Network</titleabbrev>
|
||||
|
@ -236,7 +236,7 @@ if (!$fp) {
|
|||
<title>Using UDP connection</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
<?php
|
||||
$fp = fsockopen("udp://127.0.0.1", 13, $errno, $errstr);
|
||||
if (!$fp) {
|
||||
echo "ERROR: $errno - $errstr<br>\n";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.36 $ -->
|
||||
<!-- $Revision: 1.37 $ -->
|
||||
<reference id="ref.oci8">
|
||||
<title>Oracle 8 functions</title>
|
||||
<titleabbrev>OCI8</titleabbrev>
|
||||
|
@ -283,13 +283,13 @@ $data = array(1111 => "Larry", 2222 => "Bill", 3333 => "Jim");
|
|||
|
||||
$rowid = OCINewDescriptor($conn,OCI_D_ROWID);
|
||||
|
||||
OCIBindByName($stmt,":empno",&$empno,32);
|
||||
OCIBindByName($stmt,":ename",&$ename,32);
|
||||
OCIBindByName($stmt,":rid",&$rowid,-1,OCI_B_ROWID);
|
||||
OCIBindByName($stmt,":empno",&$empno,32);
|
||||
OCIBindByName($stmt,":ename",&$ename,32);
|
||||
OCIBindByName($stmt,":rid",&$rowid,-1,OCI_B_ROWID);
|
||||
|
||||
$update = OCIParse($conn,"update emp set sal = :sal where ROWID = :rid");
|
||||
OCIBindByName($update,":rid",&$rowid,-1,OCI_B_ROWID);
|
||||
OCIBindByName($update,":sal",&$sal,32);
|
||||
OCIBindByName($update,":rid",&$rowid,-1,OCI_B_ROWID);
|
||||
OCIBindByName($update,":sal",&$sal,32);
|
||||
|
||||
$sal = 10000;
|
||||
|
||||
|
@ -305,7 +305,7 @@ OCIFreeStatement($stmt);
|
|||
|
||||
$stmt = OCIParse($conn,"select * from emp where empno in (1111,2222,3333)");
|
||||
OCIExecute($stmt);
|
||||
while (OCIFetchInto($stmt,&$arr,OCI_ASSOC)) {
|
||||
while (OCIFetchInto($stmt,&$arr,OCI_ASSOC)) {
|
||||
var_dump($arr);
|
||||
}
|
||||
OCIFreeStatement($stmt);
|
||||
|
@ -1466,14 +1466,14 @@ print "<TH>DEPT #</TH>";
|
|||
print "<TH># EMPLOYEES</TH>";
|
||||
print "</TR>";
|
||||
|
||||
while (OCIFetchInto($stmt,&$data,OCI_ASSOC)) {
|
||||
while (OCIFetchInto($stmt,&$data,OCI_ASSOC)) {
|
||||
print "<TR>";
|
||||
$dname = $data["DNAME"];
|
||||
$deptno = $data["DEPTNO"];
|
||||
print "<TD>$dname</TD>";
|
||||
print "<TD>$deptno</TD>";
|
||||
ociexecute($data[ "EMPCNT" ]);
|
||||
while (OCIFetchInto($data[ "EMPCNT" ],&$subdata,OCI_ASSOC)) {
|
||||
while (OCIFetchInto($data[ "EMPCNT" ],&$subdata,OCI_ASSOC)) {
|
||||
$num_emps = $subdata["NUM_EMPS"];
|
||||
print "<TD>$num_emps</TD>";
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.16 $ -->
|
||||
<!-- $Revision: 1.17 $ -->
|
||||
<reference id="ref.openssl">
|
||||
<title>OpenSSL functions</title>
|
||||
<titleabbrev>OpenSSL</titleabbrev>
|
||||
|
@ -209,7 +209,7 @@
|
|||
<![CDATA[
|
||||
// lets assume you just called an openssl function that failed
|
||||
while($msg = openssl_error_string)
|
||||
echo $msg . "<br>";
|
||||
echo $msg . "<br />\n";
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
@ -744,7 +744,7 @@ if (openssl_pkcs7_sign("msg.txt", "signed.txt", "mycert.pem",
|
|||
"Subject" => "Eyes only"))
|
||||
{
|
||||
// message signed - send it!
|
||||
exec(ini_get("sendmail_path") . " < signed.txt");
|
||||
exec(ini_get("sendmail_path") . " < signed.txt");
|
||||
}
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue