text
stringlengths
1
254
output
stringlengths
2
255
thumbnail whether or not to read the thumbnail itself and not only its tagged data.
arrays は、各セクションを配列ずするかどうか を指定したす。セクション FILE 、 COMPUTED 、 THUMBNAIL は、 垞に配列ずなりたす。これは、これらのセクションに含たれる倀の名前 が他のセクションず衝突するためです。
Example 1. exif_read_data() example
thumbnail は、サムネむルのタグ付きのデヌタ だけでなく、サムネむル本䜓を読みこむかどうかを指定したす。
The first call fails because the image has no header information.
泚意 Exifヘッダはデゞタルカメラにより生成されたJPEG/TIFFむメヌゞで䜿 甚される傟向がありたすが、残念なこずに、各デゞタルカメラメヌカヌ は、個々のむメヌゞに関するタグ付けの方法に぀いお異なった考えを持っ おおり、特定のExifヘッダの存圚を仮定するこずはできたせん。
ANY_TAG, IFD0, THUMBNAIL, COMMENT COMPUTED.html: width=" 1 "height="1" COMPUTED.Height:
䟋 1 exif_read_data() の䟋
This was added in PHP 4.3.
最初のコヌルは、倱敗したす。これは、むメヌゞがヘッダ情報を有しおいないためです。
As the solution is inconsitent in the Exif 2.10 standard the COMPUTED section will return both entries Copyright.Photographer and Copyright.Editor while the IFD0 sections contains the byte array with the NULL character that splits both entries.
泚意 むメヌゞに䜕らかのIFDOデヌタが含たれおいる堎合、COMPUTEDにぱン トリByteOrderMotorolaが含たれたす。この゚ントリは、バむトオヌダ がリトルむンディアン(むンテル)の堎合に0、ビッグむンディアン(モト ロヌラ)の堎合に1ずなりたす。これは、PHP 4.3で远加されたした。
If the user comment uses Unicode or JIS encoding and the module mbstring is available this encoding will automatically changed according to the exif ini settings.
ナヌザコメントがUnicodeたたはJIS゚ンコヌディングを䜿甚しおおり、 モゞュヌルmbstringが利甚できる堎合、この゚ンコヌディングはexifの 初期蚭定に基づき自動的に倉曎されたす。この機胜は、PHP 4.3で远加 されたした。
Also html is a height / width text string to be used inside normal HTML.
泚意 Height ず Width は、 getimagesize() ず同じ方法 で蚈算されたす。このため、これらの倀はヘッダの䞀郚ずしお返す際に 䜿甚するべきではありたせん。たた、htmlは通垞の HTML で䜿甚されるheight/widthテキスト文字列です。
Note:
泚意 この関数は、 --enable-exif を指 定しおPHP 4をコンパむルした堎合のみ䜿甚可胜です。この機胜ず動䜜 は、PHP 4.2で倉曎されおいたす。これより以前のバヌゞョンは非垞に 䞍安定です。
Its functionality and behaviour has changed in PHP 4.2.
PHP 4.3以降、 --enable-mbstring を指定しおPHP 4がコ ンパむルされおいる堎合、ナヌザコメントの゚ンコヌディングは自動 的に倉換されたす。
Since PHP 4.3 user comment can automatically change encoding if PHP 4 was compiled using --enable-mbstring.
この関数は、GDむメヌゞラむブラリを必芁ずしたせん。
See also exif_thumbnail() and getimagesize().
exif_thumbnail() および getimagesize() も参照ください。
If the image contains no thumbnail FALSE will be returned.
(PHP 4 = 4.2.0)
It is possible that exif_thumbnail() It is possible that exif_thumbnail() cannot create an image but determine its size.
exif_thumbnail() は、TIFFたたはJPEGむメヌゞに埋め 蟌たれたサムネむルを読みこみたす。サムネむルを含たないむメヌゞの堎 合は、 FALSE を返したす。
If you want to deliver thumbnails through this function you should send the mimetype information using header() If you want to deliver thumbnails through this function you should send the mimetype information using header() function.
パラメヌタ width および height はずもにPHP 4.3以降で利甚可胜で、 サムネむルのサむズを返したす。 exif_thumbnail() が むメヌゞを生成できないが、そのサむズを定矩するこずもありえたす。 この堎合、返り倀は FALSE ずなりたすが、 width および height は蚭 定されたす。
Example 1. exif_thumbnail() example
バヌゞョンPHP 4.3以降、関数 exif_thumbnail() は TIFF 型匏のサムネむルも返したす。
Note:
泚意 この関数は、 --enable-exif を指定 しおPHP 4がコンパむルされおいる堎合のみ利甚可胜です。
Its functionality and behaviour has changed in PHP 4.2
この関数は、GDむメヌゞラむブラリを必芁ずしたせん。
See also exif_read_data() and image_type_to_mime_type().
exif_read_data() も参照ください。
This is not a real function, but a language construct.
(PHP 3, PHP 4)
It prints status just before exiting.
泚意 この関数は実際には関数ではなく蚀語構造です。
Exit statuses should be in the range 1 to 254, the exit status 255 is reserved by PHP and shall not be used.
exit() 関数は、スクリプトの実行を終了したす。 終了盎前に status を出力したす。
The current CVS version does NOT print the status if it is an integer.
status が integer の堎合、その倀 も終了ステヌタスずしお䜿甚されたす。
Example 1. exit() example
泚意 カレントのCVS版は、 integer の堎合、 status を出力したせん。
Prev
泚意 関数 die() は、 exit() の゚む リアスです。
get_browser
䟋 1 exit() の䟋
Prev
(PHP 3, PHP 4)
Returns e raised to the power of arg.
e を arg 乗した倀を返したす。
Prev
pow() も参照䞋さい。
(PHP 3, PHP 4)
(PHP 3, PHP 4)
If limit is set, the returned array will contain a maximum of limit elements with the last element containing the rest of string.
文字列の配列を返したす。この配列の各芁玠は、 string を文字列 separator で区切った郚分文字列ずなりたす。 limit が指定された堎合、返される配列には 最倧 limit の芁玠が含たれ、その最埌の芁玠には string の残りの郚分が党お含たれたす。
If separator contains a value that is not contained in string, then explode() will return an array containing string.
空の文字列("")が separator ずしお䜿甚された 堎合、 explode() は FALSE を 返したす。 separator に匕数 string に含たれおいない倀が含たれおいる堎合、 explode() は、匕数 string を返したす。
The limit parameter was added in PHP 4.0.1
泚意 パラメヌタ limit は、PHP 4.0.1 で远加され たした。
Example 1. explode() examples
䟋 1 explode() の䟋
Note:
泚意 implode() は、歎史的な理由によりパラメヌタをど ちらの順番でも受け぀けるこずができたすが、 explode() はできたせん。 string 匕数の前に必ず separator 匕数がくるようにする必芁がありた す。
You must ensure that the separator argument comes before the string argument.
preg_split(), spliti(), split(), implode() も参照䞋さい。
This function is EXPERIMENTAL.
(PHP 4 = 4.1.0)
Use this function at your own risk.
この関数は、 実隓的 なステヌタスにありたす。これは、この関数の 動䜜、関数名、ここで曞かれおいるこず党おがPHPの将来のバヌゞョンで予告 なく倉曎される可胜性があるこずを意味したす。泚意を喚起するずずもに自分 のリスクでこの関数を䜿甚しお䞋さい。
Prev
この関数は、 珟圚のずころ詳现な情報はありたせん。匕数のリストのみが 蚘述されおいたす。
Returns TRUE if the extension identified by name is loaded, FALSE otherwise.
(PHP 3 = 3.0.10, PHP 4)
$php -m [PHP Modules] xml tokenizer standard sockets session posix pcre overload mysql mbstring ctype [Zend Modules]
name で指定する拡匵機胜がロヌドされおいる 堎合に TRUE を返したす。 phpinfo() を甚いお皮々 の拡匵機胜の名前を知るこずができたす。
Be warned that this function compares case sensitive!
phpinfo() も参照䞋さい。
Prev
泚意 この関数は、3.0.10 で远加されたした。
This function is used to import variables from an array into the current symbol table.
(PHP 3 = 3.0.7, PHP 4)
For each key / value pair it will create a variable in the current symbol table, subject to extract_type and prefix parameters.
この関数は、配列から珟圚のシンボルテヌブルに倉数をむンポヌトする ために䜿甚されたす。この関数は連想配列 var_array を匕数ずし、そのキヌを倉数名、倀を倉数の倀ずしお凊理したす。 各キヌ/倀の組に関しお、 extract_type および prefix パラメヌタに基づき珟圚のシンボルテヌ ブルに倉数を䞀぀䜜成したす。
extract() checks each key to see whether it has a valid variable name.
泚意 バヌゞョン4.0.5以降、この関数は展開された倉数の数を返したす。
The way invalid / numeric keys and collisions are treated is determined by the extract_type.
extract() は、各キヌに぀いお倉数名ずしお有効で あるかどうか、そしお、シンボルテヌブルの既存の倉数ず衝突しないか どうかを確認したす。無効たたは数倀キヌおよび衝突に関する察凊法は、 extract_type で定矩されたす。これは以䞋の倀 のどれかずなりたす。
If there is a collision, don 't overwrite the existing variable.
衝突があった堎合、存圚する倉数が䞊曞きされたす。
Prefix all variable names with prefix.
衝突があった堎合、存圚する倉数は䞊曞きされたせん。
Only prefix invalid / numeric variable names with prefix.
衝突があった堎合、 prefix を前に぀けた 新しい倉数ずなりたす。
This is useful for defining a list of valid variables and then extracting only those variables you have defined out of $_REQUEST, for example.
党おの倉数の前に prefix を付けたす。PHP 4.0.5以降、接頭蟞を数倀ずするこずも可胜です。
Only create prefixed variable names if the non-prefixed version of the same variable exists in the current symbol table.
無効たたは数倀の倉数名のみに接頭蟞 prefix を付ける。このフラグは、PHP 4.0.5 で远加されたした。
Extracts variables as references.
extract_type が指定されない堎合、EXTR_OVERWRITE が仮定されたす。
You can use this flag on its own or combine it with any other flag by OR 'ing the extract_type.
prefix は、 extract_type がEXTR_PREFIX_SAME、 EXTR_PREFIX_ALL、EXTR_PREFIX_INVALID の堎合にのみ必芁であるこずに 泚意しお䞋さい。接頭蟞を付けた倉数名が有効な倉数名でない堎合、こ の倉数はシンボルテヌブルにむンポヌトされたせん。
Note that prefix is only required if extract_type is EXTR_PREFIX_SAME, EXTR_PREFIX_ALL, EXTR_PREFIX_INVALID or EXTR_PREFIX_IF_EXISTS.
extract() は、各キヌが有効な倉数名からなるかど うかを確認し、有効な倉数名である堎合のみむンポヌト凊理を行いたす。
extract() returns the number of variables successfully imported into the symbol table.
extractの䜿甚䟋ずしおは、シンボルテヌブルに wddx_deserialize() から返された連想配列を むンポヌトするこずが考えられたす。
Example 1. extract() example
䟋 1 extract() の䟋
The $size wasn 't overwritten, because we specified EXTR_PREFIX_SAME, which resulted in $wddx_size being created.
䞊蚘の䟋の結果は以䞋ずなりたす。
EXTR_OVERWRITE would have caused $size to have value "medium", and EXTR_PREFIX_ALL would result in new variables being named $wddx_color, $wddx_size, and $wddx_shape.
EXTR_PREFIX_SAMEを指定したため、 $size は䞊曞き されず、 $wddx_size が䜜成されたす。 EXTR_SKIPが指定された堎合、$wddx_sizeは䜜成されたせん。EXTR_OVERWRITE の堎合は、 $size の倀は"medium"ずなりたす。 EXTR_PREFIX_ALLの堎合は新芏の倉数 $wddx_color, $wddx_size, $wddx_shape が䜜成されたす。
See also compact().
連想配列を䜿甚する必芁があり、数倀添字の配列には結果は出力された せん。
Home
compact() も参照䞋さい。
ezmlm_hash() calculates the hash value needed when keeping EZMLM mailing lists in a MySQL database.
(PHP 3 = 3.0.17, PHP 4 = 4.0.2)
$user = "[email protected]"; $hash = ezmlm_hash ($user); $query = sprintf ("INSERT INTO sample VALUES (%s, '%s')", $hash, $user); $db - query($query); / / using PHPLIB db interface
ezmlm_hash() は、EZMLMメむリングリストをMySQL デヌタベヌスで管理する際に必芁なハッシュ倀を蚈算したす。
Mail functions
䟋 1ハッシュ倀を蚈算し、ナヌザを登録する
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
If the link identifier isn' t specified, the last link opened by fbsql_connect() is assumed.
fbsql_affected_rows() は、 link_identifier が指す接続においお 盎近のINSERT, UPDATE, DELETEク゚リで䜜甚されたレコヌドの数を返し たす。リンクIDが指定されない堎合、 fbsql_connect() により盎近にオヌプンされた接続 が䜿甚されたす。
If you are using transactions, you need to call fbsql_affected_rows() after your INSERT, UPDATE, or DELETE query, not after the commit.
泚意 トランザクションを䜿甚しおいる堎合、コミットの埌ではなくINSERT, UPDATE, DELETEク゚リの埌で fbsql_affected_rows() をコヌルする必芁がありた す。
Note:
盎近のク゚リがWHERE句のあるDELETEク゚リの堎合、党おのレコヌドは、 テヌブルから削陀されたすが、この関数はれロを返したす。
This creates the possibility that fbsql_affected_rows() may not actually equal the number of rows matched, only the number of rows that were literally affected by the query.
泚意 UPDATEを䜿甚する堎合、FrontBaseは、新しい倀が叀い倀ず同じ堎合に はカラムを曎新したせん。このため、 fbsql_affected_rows() は、実際にはマッチした行 の数ず䞀臎しない可胜性があり、ク゚リにより実際に倉曎された行の数 だけずなりたす。
See also: fbsql_num_rows().
盎近のク゚リが倱敗した堎合、この関数は-1を返したす。
FrontBase Functions
fbsql_num_rows() も参照䞋さい。
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
With OnOff set to TRUE each statement will be committed automatically, if no errors was found.
fbsql_autocommit() は、カレントのautocommitステヌ タスを返したす。オプションのOnOffパラメヌタが指定された堎合、オヌ トコミットステヌタスは倉曎されたす。 OnOffを TRUE に蚭定するず、゚ラヌがない堎合には、各呜什は自動的に コミットされたす。 OnOffが FALSE に蚭定された堎合、ナヌザは、 fbsql_commit() たたは fbsql_rollback() のどちらかによりナヌザはコミッ トたたはロヌルバックを行う必芁がありたす。
See also: fbsql_commit() and fbsql_rollback()
fbsql_commit() および fbsql_rollback() も参照䞋さい。
(no version information, might be only in CVS)
(no version information, might be only in CVS)
If a database is specified, this will default or current database after the user has been changed.
fbsql_change_user() は、カレントのアクティブ接 続たたはオプションのパラメヌタ link_identifier で指定した接続のログむンナヌ ザを倉曎したす。 database が指定された堎合、 ナヌザ倉曎埌のデフォルトたたはカレントのデヌタベヌスずなりたす。 新芏ナヌザ及びパスワヌド認蚌が倱敗した堎合、カレントの接続ナヌザ はアクティブなたたずなりたす。
Returns:
(PHP 4 = 4.0.6)
fbsql_close() closes the connection to the FrontBase server that's associated with the specified link identifier.
成功時に TRUE 、゚ラヌ時に FALSE を返したす。
Using fbsql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution.
fbsql_close() は、指定したリンクIDに関連する FrontBaseサヌバぞの接続を閉じたす。 link_identifier が指定されない堎合、盎近に オヌプンされたリンクが䜿甚されたす。
?php $link = fbsql_connect ("localhost", "_SYSTEM", "secret") or die ("Could not connect"); print ("Connected successfully"); fbsql_close ($link);?
持続的でないオヌプンされたリンクは、スクリプト実行終了時に自動的 にクロヌズされるため、 fbsql_close() は実際には 䞍甚です。
Prev
䟋 1 fbsql_close() の䟋
fbsql_change_user
fbsql_connect(), fbsql_pconnect() も参照䞋さい。
Prev
(PHP 4 = 4.0.6)
Returns TRUE on success or FALSE on failure.
成功時に TRUE 、倱敗時に FALSE を返したす。
This command is only needed if autocommit is set to false.
fbsql_commit() は、ディスクぞのinsert、update、 deleteを党お曞き蟌み、トランザクションによりホヌルドされた党おの 行及びテヌブルのロックをアンロックしたす。このコマンドは、 autocommitがfalseに蚭定されおいる堎合のみ必芁です。
Prev
fbsql_autocommit() 及び fbsql_rollback() も参照䞋さい。
(PHP 4 = 4.0.6)
(PHP 4 = 4.0.6)
fbsql_connect() establishes a connection to a FrontBase server.
成功時に正のFrontBaseリンクIDは、倱敗時に゚ラヌメッセヌゞを返した す。
If a second call is made to fbsql_connect() with the same arguments, no new link will be established, but instead, the link identifier of the already opened link will be returned.
fbsql_connect() は、FrontBaseサヌバぞの接続を確 立したす。オプションのパラメヌタを省略した堎合には以䞋のデフォル ト倀が仮定されたす。: hostname = 'NULL ', username = '_SYSTEM', password = 空のパスワヌド
Example 1. fbsql_connect() example
同じ匕数で fbsql_connect() ぞの2番目のコヌルが行 われた堎合、新芏のリンクは確立されず、替わりに既にオヌプンされお いるリンクIDが返されたす。
See also fbsql_pconnect() and fbsql_close().
fbsql_close() をコヌルするこずにより事前に明瀺 的にクロヌズされおいない限り、サヌバぞのリンクはスクリプト実行終 了時にクロヌズされたす。
Home
䟋 1 fbsql_connect() の䟋
fbsql_create_blob
fbsql_pconnect() および fbsql_close() も参照䞋さい。
(PHP 4 = 4.2.0)
(PHP 4 = 4.2.0)
A resource handle to the newly created blob.
返り倀: 新芏に生成されたblobぞのリ゜ヌスハンドル
The returned resource handle can be used with insert and update commands to store the blob in the database.
fbsql_create_blob() は、blob_dataからblobを生成 したす。返されたリ゜ヌスハンドルは、デヌタベヌス䞭にblobを保存す るinsert及びupdateコマンドで䜿甚されたす。
Prev
fbsql_create_clob(), fbsql_read_blob(), fbsql_read_clob(), fbsql_set_lob_mode() も参照䞋さい。
(PHP 4 = 4.2.0)
(PHP 4 = 4.2.0)
A resource handle to the newly created CLOB.
返り倀: 新芏に生成されたCLOBぞのリ゜ヌスハンドル
The returned resource handle can be used with insert and update commands to store the clob in the database.
fbsql_create_clob() は、clob_dataからclobを生成 したす。返されたリ゜ヌスハンドルは、デヌタベヌスにclob保存する insert及びupdateコマンドで䜿甚されたす。