text
stringlengths 1
254
| output
stringlengths 2
255
|
---|---|
For instance, in the MySQL / mSQL modules, when there' s a pconnect() call (persistent connect), the function builds a string out of the host / user / passwd that were passed to the function, and hashes the SQL link with this string as a key.
|
'list' ã 'plist' ã«çœ®ããããããã ãã§ã å
šãåãã€ã³ã¿ãŒãã§ãŒã¹ããæšæºãªãœãŒã¹ãªã¹ããš æç¶çãªãœãŒã¹ãªã¹ãã«ååšããŸãã
|
Until further documented, you should look at mysql.c or msql.c to see how one should use the plist 's hash table abilities.
|
php3_plist_insert(ptr, type) - æ°èŠã«æ¿å
¥ããããªãœãŒã¹ã® 'id' ãè¿ããŸãã
|
One important thing to note: resources going into the persistent resource list must *NOT* be allocated with PHP' s memory manager, i.e., they should NOT be created with emalloc(), estrdup(), etc.
|
php3_plist_delete(id) - æå®ããã id ã®ãªãœãŒã¹ãåé€ããŸãã
|
The reason for this is simple - at the end of the request (end of the hit), every memory chunk that was allocated using PHP's memory manager is deleted.
|
php3_plist_find(id,*type) - æå®ããã id ã®ãªãœãŒã¹ãžã®ãã€ã³ã¿ãè¿ãã 'type' ããã®ãªãœãŒã¹ã®åã§æŽæ°ããŸãã
|
The one in the persistent list destructor should properly free any resources obtained by that type (e.g. memory, SQL links, etc).
|
ãã詳现ãªèšè¿°ãè¡ãããããã«ãªããŸã§ã plist ã®ããã·ã¥ããŒãã«æ©èœã®äœ¿çšæ³ãç¥ãããã«ã¯ã mysql.c ãŸã㯠msql.c ãèŠãå¿
èŠããããŸãã
|
This means that one directory may have a certain safemodeexecdir for example, while another directory may have another.
|
æ°ããåœä»€ãå ããããã«å¿
èŠãªæé ã¯æ¬¡ã®ãããªãã®ã§ãã
|
This configuration granularity is especially handy when a server supports multiple virtual hosts.
|
mod_php3.h ã«ãã php3_ini_structureã«åœä»€ãå ããŸãã
|
Add directive to php3_ini_structure struct in mod_php3.h.
|
main.c ã® php3_module_startup 颿°ãç·šéããé©åœãªcfg_get_string() ãŸãã¯cfg_get_long()ã³ãŒã«ãå ããŸãã
|
Add the directive, restrictions and a comment to the php3_commands structure in mod_php3.c.
|
mod_php3.c ã® php3_commands æ§é äœã«åœä»€ãå¶çŽãã³ã¡ã³ãã å ããŸããå¶çŽã®éšåãèšé²ããŠãããŠäžããã RSRC_CONFã¯ãApache .conf ãã¡ã€ã«ã«ã®ã¿ããåœä»€ã§ãã OR_OPTIONSåœä»€ã¯ãéåžžã® .htaccessãã¡ã€ã«ãå«ããããã å Žæã«çœ®ãããšãã§ããŸãã
|
RSRC_CONF are directives that can only be present in the actual Apache .conf files.
|
php3take1handler()ãŸãã¯php3flaghandler()ã¯ã©ã¡ããåœä»€ã« é¢ããé©åœãªãšã³ããªã远å ããŸãã
|
In either php3take1handler() or php3flaghandler() add the appropriate entry for your directive.
|
functions/info.c äžã® _php3_info() 颿°ã® èšå®ã»ã¯ã·ã§ã³ã«ãæ°ããåœä»€ã远å ããå¿
èŠããããŸãã
|
And last, you of course have to use your new directive somewhere.
|
æåŸã«ããã¡ãããæ°ããåœä»€ãã©ããã§äœ¿ãå¿
èŠããããŸãã ãã®åœä»€ã¯ãphp3_ini.åœä»€ ãšããŠã¢ã¯ã»ã¹ã§ããŸãã
|
Hypertext Preprocessor "is a widely-used Open Source general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.
|
PHP ("PHP: Hypertext Preprocessor") ã¯äžçäžã§åºã䜿çšãããŠãããªãŒãã³ãœãŒã¹ã®æ±çšã¹ã¯ãªããèšèªã§ã HTMLäžã«ã¹ã¯ãªãããèšè¿°åºæ¥ããšããç¹æ§ã«ããWebéçºã«é©ããŠããŸãã PHP ã®å€ãã®æ§æã¯ CãJavaãPerl èšèªãã転çšãããã®ã§ã ç°¡åã«ç¿åŸããããšãåºæ¥ãŸããPHPã®äž»ãªç®çã¯ãWebéçºè
ãåçã« çæããããŠã§ãããŒãžã®äœæãéããã«è¡ãããšãã§ããããã«ãã ã§ãããPHPã§ã¯ããã«å€ãã®ããšãå¯èœã§ãã
|
The main goal of the language is to allow web developers to write dynamically generated webpages quickly, but you can do much more with PHP.
|
ãã®ããã¥ã¢ã«ã¯é¢æ°ãªãã¡ã¬ã³ã¹ãäžå¿ãšããŠãèšèªãªãã¡ã¬ã³ã¹ãPHPã® äž»ãªæ©èœã®èª¬æãšãã®ä»ã®è£è¶³çãªèª¬æããæã£ãŠããŸãã
|
You can download this manual in several formats at http: / /www.php.net / docs.php.
|
æ§ã
ã®ãã©ãŒãããã®ããã¥ã¢ã«ã http://www.php.net/docs.php ã§ããŠã³ããŒãããããšãåºæ¥ãŸãã ããŠã³ããŒããã¡ã€ã«ã¯ããã®å
容ã倿Žããããšèªåçã«æŽæ°ãããŸãã ãã®ããã¥ã¢ã«ãã©ã®ããã«äœæãããŠãããããšãã£ã詳现㪠æ
å ±ã¯ä»é²ã® ããã¥ã¢ã«ã«ã€ã㊠ã«ãããŸãã
|
For PHP installation on Apache 1.x see the Apache section in the installation chapter.
|
ãã®ã¢ãžã¥ãŒã«ã®é¢æ°ã¯ãApache 1.x ã¢ãžã¥ãŒã«ãšããŠPHPãå®è¡ã㊠ããå Žåã®ã¿æå¹ã§ãã
|
Configuration settings from php.ini may be overridden by php_flag settings in the server configuration file or local .htaccess files.
|
Apache 1.xãžã®PHPã®ã€ã³ã¹ããŒã«ã«ã€ããŠã¯ãã€ã³ã¹ããŒã«ã®ç« ã® Apacheã®ç¯ ãåç
§ããŠäžããã
|
last_modified
|
Apache PHPã¢ãžã¥ãŒã«ã®åäœã¯ã php.ini ã®èšå®ã«ãã圱é¿ãåããŸãã php.ini ã®èšå®ã¯ããµãŒãã®èšå®ãã¡ã€ã«ãŸãã¯ããŒã«ã«ãªãã¡ã€ã« .htaccess ã«ããäžæžãããããšãã§ããŸãã
|
send PHP scripts modification date as Last-Modified: header for this request
|
äŸ 1 .htaccess ã«ãããããã£ã¬ã¯ããªã®PHPã«ããã㌠ã¹ãç¡å¹ã«ãã
|
parse files with executable bit set as PHP regardles of their file ending
|
衚 1Apacheèšå®ãªãã·ã§ã³
|
This directive is really only useful in the Apache module version of PHP.
|
èšå®ãã£ã¬ã¯ãã£ãã®çã説æã以äžã«ç€ºããŸãã
|
By putting engine off in the appropriate places in the httpd.conf file, PHP can be enabled or disabled.
|
ãã®ãã£ã¬ã¯ãã£ãã¯ãApacheã¢ãžã¥ãŒã«çã®PHPã§ã®ã¿æå¹ã§ãã ãã®ãã£ã¬ã¯ãã£ãã¯ããã£ã¬ã¯ãã£ãæ¯ãŸãã¯ä»®æ³ãµãŒãæ¯ã«PHPã« ããããŒã¹ãæå¹ãŸãã¯ç¡å¹ã«ããããµã€ãã§äœ¿çšãããŸãã httpd.conf ãã¡ã€ã«ã®é©åœãªå Žæã« engine off ã眮ãããšã«ãããPHPãæå¹ãŸã ã¯ç¡å¹ã«ããããšãã§ããŸãã
|
This extension has no constants defined.
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯ãªãœãŒã¹åãå
šãå®çŸ©ã ãŸããã
|
apache_child_terminate
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯å®æ°ãå
šãå®çŸ©ããŸã ãã
|
These functions allow you to interact with and manipulate arrays in various ways.
|
ãããã®é¢æ°ã«ããæ§ã
ãªææ³ã§é
åã«ã¢ã¯ã»ã¹ããæäœããããšãå¯èœ ã«ãªããŸããé
åã¯ã倿°ã®çµãä¿åã管çãæäœããåºæ¬çãªèŠçŽ ã§ãã
|
Simple and multi-dimensional arrays are supported, and may be either user created or created by another function.
|
éåžžã®é
åããã³å€æ¬¡å
é
åããµããŒããããŠããããŠãŒã¶ãå®çŸ©ãããã ä»ã®é¢æ°ã§äœæããããšãå¯èœã§ããããã€ãã®ããŒã¿ããŒã¹åŠç颿°ã¯ã ããŒã¿ããŒã¹ã®ã¯ãšãªããé
åãè¿ããŸãããããã€ãã®é¢æ°ã¯é
åãè¿ ããŸãã
|
There are specific database handling functions for populating arrays from database queries, and several functions return arrays.
|
PHPã§ã®é
åã®å®è£
ãäœ¿çšæ¹æ³ã®è©³çްã«ã€ããŠã¯ãããã¥ã¢ã«ã® é
å ã«é¢ããç¯ãåç
§äž ããã
|
Please see the Arrays section of the manual for a detailed explanation of how arrays are implemented and used in PHP.
|
ãããã®é¢æ°ã¯ãæšæºã¢ãžã¥ãŒã«ã®äžéšãš ããŠå©çšå¯èœã§ãããåžžã«äœ¿çšã§ããŸãã
|
No external libraries are needed to build this extension.
|
ãããã®é¢æ°ã¯PHPã³ã¢ã«å«ãŸããããã䜿çšã ãéã«ã€ã³ã¹ããŒã«ã¯äžèŠã§ãã
|
There is no installation needed to use these functions; they are part of the PHP core.
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯èšå®ãã£ã¬ã¯ãã£ããå
šã å®çŸ©ããŸããã
|
This extension has no configuration directives defined in php.ini.
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯ãªãœãŒã¹åãå
šãå®çŸ©ã ãŸããã
|
This extension has no resource types defined.
|
ãã®äžèЧã«ãã宿°ã¯ãPHPã³ã¢ã«å«ãŸããŠããåžžã«å©çšå¯èœã§ãã
|
CASE_LOWER is used with array_change_key_case() and is used to convert array keys to lower case.
|
CASE_LOWER ã¯ã array_change_key_case() ã§äœ¿çšããã é
åã®ããŒãå°æåã«å€æããããã«äœ¿çšãããŸããå°æåã¯ã array_change_key_case() ã®ããã©ã«ãã®ã±ãŒã¹ã§ ããããŸãã
|
CASE_UPPER is used with array_change_key_case() and is used to convert array keys to upper case.
|
CASE_UPPER ã¯ã array_change_key_case() ã§äœ¿çšãããé
åã®ã㌠ã倧æåã«å€æããããã«äœ¿çšãããŸãã
|
Sorting order flags:
|
ãœãŒã¹é ã®ãã©ã°:
|
SORT_DESC is used with array_multisort() to sort in descending order.
|
SORT_ASC ã¯ã array_multisort() ã§ãœãŒãé ãæé ã«ãããã㫠䜿çšãããŸãã
|
SORT_REGULAR is used to compare items normally.
|
SORT_DESC ã¯ã array_multisort() ã§ãœãŒãé ãéé ã«ãããã㫠䜿çšãããŸãã
|
SORT_STRING is used to compare items as strings.
|
ãœãŒãåã®ãã©ã°: çš®ã
ã®ãœãŒã颿°ã§äœ¿çšãããŸã
|
See also is_array(), explode(), implode(), split(), preg_split(), and join().
|
SORT_REGULAR ã¯éåžžã®æ¯èŒããããã«äœ¿çšãã ãŸãã
|
Home
|
SORT_NUMERIC ã¯æ°å€ã§æ¯èŒãè¡ãããã«äœ¿çšã ããŸãã
|
virtual
|
SORT_STRING ã¯æååãšããŠæ¯èŒãè¡ãããã«äœ¿ çšãããŸãã
|
array_change_key_case
|
is_array(), explode(), implode(), split(), preg_split(), and join() ãåç
§ããŠäžããã
|
aspell works only with very old (up to .27.* or so) versions of aspell library.
|
aspell() 颿°ã«ããåèªã®ã¹ãã«ãã§ãã¯ããã³ ä¿®æ£æ¡ã®æäŸãå¯èœãšãªããŸãã
|
If you want to use spell-checking capabilities in PHP, use pspell If you want to use spell-checking capabilities in PHP, use pspell instead.
|
aspellãåäœããã®ã¯ãéåžžã«å€ã(.27.*ãŸã§)ããŒãžã§ã³ã®aspellã©ã€ ãã©ãªã®ã¿ã§ãããã®ã¢ãžã¥ãŒã«ãããããã®ããŒãžã§ã³ã®aspellã©ã€ã ã©ãªãå°æ¥çã«ããµããŒããããŸãããphpã§ã¹ãã«ãã§ãã¯ã®æ©èœã䜿 çšãããå Žåã¯ã代ããã« pspell ã 䜿çšããŠäžããããã®ã¢ãžã¥ãŒã«ã¯ãpspellã©ã€ãã©ãªã䜿çšããããæ° ããããŒãžã§ã³ã®aspellãšçµã¿åãããŠãåäœããŸãã
|
You need the aspell library, available from: http: / /aspell.sourceforge.net /.
|
aspell ã©ã€ãã©ãªãå¿
èŠã§ãããã®ã©ã€ãã©ãªã¯æ¬¡ã®å Žæã§æã«å
¥ããŸãã: http://aspell.sourceforge.net/
|
Prev
|
pspell ãåç
§ããŠäžããã
|
Since PHP 4.0.4, libbcmath is bundled with PHP.
|
ä»»æç²ŸåºŠæŒç®ã«é¢ããŠãPHPã¯æååãšããŠè¡šãããä»»æã®å€§ããããã³ ç²ŸåºŠã®æ°ããµããŒããããã€ããªèšç®æ©ãæäŸããŸãã
|
In PHP 4, these functions are only available if PHP was configured with --enable-bcmath.
|
PHP 4.0.4以éãlibbcmathãPHPã«ä»å±ããŠããŸãããã®ã¢ãžã¥ãŒã«ã䜿 çšããããã«å€éšã®ã©ã€ãã©ãªã䜿çšããå¿
èŠã¯ãããŸããã
|
The windows version of PHP The windows version of PHP has built in support for this extension.
|
PHP 4ã§ã¯ããããã®é¢æ°ã¯ãPHPãæ§ç¯ãªãã·ã§ã³ --enable-bcmath ãä»ããŠã³ã³ã〠ã«ãããŠããå Žåã«ã®ã¿äœ¿çšã§ããŸãã PHP 3ã§ã¯ããããã®é¢æ°ã¯ãPHPãæ§ç¯ãªãã·ã§ã³ --disable-bcmath ãä»ããã«ã³ã³ã ã€ã«ãããŠããå Žåã«ã®ã¿äœ¿çšã§ããŸãã
|
The behaviour of these functions is affected by settings in php.ini.
|
ãããã®é¢æ°ã®åäœã¯ã php.ini ã®èšå®ã«ããå€åããŸãã
|
BC math configuration options
|
衚 1BCæ°åŠé¢æ°èšå®ãªãã·ã§ã³
|
bcmath.scale
|
以äžã«èšå®ãã£ã¬ã¯ãã£ãã«é¢ããç°¡åãªèª¬æã瀺ããŸãã
|
Here is a short explanation of the configuration directives.
|
å
šãŠã®bcmath颿°ã«é¢ãã10鲿¡æ°
|
This extension has no resource types defined.
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯ãªãœãŒã¹åãå
šãå®çŸ©ã ãŸããã
|
Prev
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯å®æ°ãå
šãå®çŸ©ããŸã ãã
|
This module uses the functions of the bzip2 library by Julian Seward.
|
bzip2颿°ã¯ãbzip2 (.bz2)å§çž®ããããã¡ã€ã«ãééçã«èªã¿æžããã ããã«äœ¿çšãããŸãã
|
Bzip2 support in PHP is not enabled by default.
|
ãã®ã¢ãžã¥ãŒã«ã¯ãJulian Seward ã«ããäœæããã bzip2 ã©ã€ãã©ãªã®é¢æ°ã䜿çšã㊠ããŸãã
|
This extension has no configuration directives defined in php.ini.
|
PHPã«ãããbzip2ãµããŒãã¯ããã©ã«ãã§æå¹ã«ãªã£ãŠããŸãããPHPã§ bzip2ãµããŒããæå¹ã«ããã«ã¯ãPHPã®ã³ã³ãã€ã«æã«èšå®ãªãã·ã§ã³ã« --with-bz2 ã䜿 çšããå¿
èŠããããŸãããã®ã¢ãžã¥ãŒã«ã¯ãbzip2/libbzip2 version = 1.0.x ãå¿
èŠãšããŸãã
|
This extension defines one resource type: a file pointer identifying the bz2-file to work on.
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯èšå®ãã£ã¬ã¯ãã£ããå
šã å®çŸ©ããŸããã
|
This example opens a temporary file and writes a test string to it, then prints out the contents of the file.
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯ããªãœãŒã¹åãšããŠåŠçãè¡ãbz2ãã¡ã€ã«ãæã ãã¡ã€ã«ãã€ã³ã¿ãå®çŸ©ããŸãã
|
Small bzip2 Example
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯å®æ°ãå
šãå®çŸ©ããŸã ãã
|
Prev
|
ãã®äŸã¯ããã³ãã©ãªãã¡ã€ã«ããªãŒãã³ãããã¹ãçšã®æååãæžã 蟌ã¿ãŸãããã®åŸããã®ãã¡ã€ã«ã®å
容ãåºåããŸãã
|
bcsub
|
äŸ 1ç°¡å㪠bzip2 ã®äŸ
|
To convert between calendar systems, you must first convert to Julian Day Count, then to the calendar system of your choice.
|
ãã®ã¢ãžã¥ãŒã«ã®é¢æ°ãåäœãããã«ã¯ã --enable-calendar ãæå®ã㊠PHPãã³ã³ãã€ã«ããå¿
èŠããããŸãã
|
For more information on calendar systems visit http: / /genealogy.org / ~scottlee / cal-overview.html.
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯èšå®ãã£ã¬ã¯ãã£ããå
šã å®çŸ©ããŸããã
|
To get these functions to work, you have to compile PHP with --enable-calendar.
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯ãªãœãŒã¹åãå
šãå®çŸ©ã ãŸããã
|
You do not need to load any additional extension in order to use these functions.
|
ãããã®å®æ°ã¯ããã®æ¡åŒµã¢ãžã¥ãŒã«ã§å®çŸ©ãããŠããã ãã®æ¡åŒµã¢ãžã¥ãŒã«ãPHPå
éšã«ã³ã³ãã€ã«ãããŠãããå®è¡æã«åçã«ã㌠ãããããã®ã©ã¡ããã®å Žåã®ã¿äœ¿çšå¯èœã§ãã
|
The following constants are available since PHP 4.3.0:
|
以äžã®å®æ°ã¯ã PHP 4.3.0以éã§äœ¿çšå¯èœã§ãã
|
If you use this option without specifying the path to your CCVS installation, PHP will attempt to look in the default CCVS Install location (/ usr / local / ccvs).
|
泚æ CCVSã®éçºã¯Red Hatã«ããäžæãããéçºããµããŒããç¶ç¶ãããäº å®ã¯ãããŸããã代æ¿åãæ¢ããŠããå Žåã¯ã MCVE by Main Street Softworks ã代æ¿åè£ãšããŠèããŠã¿ãŠäžããã ããã¯ãèšèšã䌌ãŠãããPHPã®ãµããŒããææžã§ãããããŠããŸã!
|
You will also need to make sure the PHP Processes are running under the same user as your CCVS was installed as (e.g. if you installed CCVS as user'ccvs', your PHP processes must run as'ccvs' as well.)
|
ãŸããPHPã¹ã¯ãªããã䜿çšããèšå®ã§ ccvsd ããã»ã¹ãå®è¡ããŠããå¿
èŠããããŸããCCVSãã€ã³ã¹ããŒã«ãããã®ãšåããŠãŒã¶ã§PHPããã»ã¹ ãå®è¡ãããŠãããã確èªããå¿
èŠããããŸãã(äŸãã°ããŠãŒã¶ãŒ' ccvs'ã§CCVSãã€ã³ã¹ããŒã«ããå Žåã«ã¯ãPHPããã»ã¹ã®ãŠãŒã¶ãŒãåæ§ ã«'ccvs'ãšããŠå®è¡ããå¿
èŠããããŸãã)
|
RedHat maintains slightly outdated but still useful documentation at http: / /www.redhat.com / products / ccvs / support / CCVS3.3docs / ProgPHP.html.
|
CCVSã«é¢ããè©³çŽ°ãªæ
å ±ã¯ã http://www.redhat.com/products/ccvs ããå
¥æå¯ èœã§ããRedHatã¯ããå€ãã§ããçŸåšã§ãæçšãªææžã http://www.redhat.com/products/ccvs/support/CCVS3.3docs/ProgPHP.html 㧠管çããŠããŸãã®ã§åç
§ããŠäžããã
|
Using these functions, you can find out not only the class membership of an object, but also its parentage (i.e. what class is the object class extending).
|
以äžã®é¢æ°ã«ãããã¯ã©ã¹ãã€ã³ã¹ã¿ã³ã¹ãªããžã§ã¯ãã«é¢ããæ
å ±ã åŸãããšãå¯èœãšãªããŸãããªããžã§ã¯ããå±ããã¯ã©ã¹ã®ååããã® ã¡ã³ããŒããããã£ãã¡ãœãããååŸå¯èœã§ãã ãã®é¢æ°ã䜿çšããããšã«ããããªããžã§ã¯ãã®ã¯ã©ã¹ã¡ã³ããŒã ãã§ ãªã芪ã¯ã©ã¹(ããªãã¡ãã®ãªããžã§ã¯ãã¯ã©ã¹ã®æŽŸçå
)ã®æ
å ±ãåŸã ããšãå¯èœã§ãã
|
The base class describes a general vegetable, whether it is edible or not and what is its color.
|
ãã®äŸã§ã¯ããŸãåºåºã¯ã©ã¹ããã³ãã®ã¯ã©ã¹ã®æŽŸçã¯ã©ã¹ãå®çŸ©ã㟠ããåºåºã¯ã©ã¹ã¯é£çšãåŠããè²ãšããã£ããäžè¬çãªéèãèšè¿°ã㟠ãããµãã¯ã©ã¹ Spinach ã¯ãã®éèã®æçæ³ãšèª¿ç æžã§ãããã©ããã®æ
å ±ã远å ããŸãã
|
Example 1. classes.inc
|
äŸ 1classes.inc
|
We also define some utility functions, mainly to have a nice printout of the variables.
|
ç¶ããŠããããã®ã¯ã©ã¹ããäºã€ã®ãªããžã§ã¯ãã®ã€ã³ã¹ã¿ã³ã¹ãäœæãã 芪ã¯ã©ã¹ãå«ãæ
å ±ãåºåããŸãã ãŸããããã€ãã®ãŠãŒãã£ãªãã£é¢æ°ãå®çŸ©ããŸãããããã¯äž»ã«å€æ° ãæ Œå¥œè¯ã衚瀺ããããã®ãã®ã§ãã
|
Properties\n"; print_vars($veggie); / / and leafy methods echo "\nleafy:
|
äŸ 2test_script.php
|
One important thing to note in the example above is that the object $leafy is an instance of the class Spinach which is a subclass of Vegetable, therefore the last part of the script above will output:
|
泚æãã¹ã倧äºãªç¹ã§ãããäžèšã®äŸã§ã¯ãªããžã§ã¯ã $leafy 㯠Vegetable ã®ãµãã¯ã©ã¹ã§ããã¯ã©ã¹ Spinach ã®ã€ã³ã¹ã¿ã³ã¹ã§ããã ãã®ã¹ã¯ãªããã®æåŸã®éšåã¯ä»¥äžã®ãããªåºåãšãªããŸãã
|
It can be thought of as a super Remote Procedure Call (RPC) mechanism with some basic object roots.
|
COMã¯ãæšæºåãããåŒã³åºãèŠçŽåã³ã³ã³ããŒãã³ããä¿åãããŠãã ãã·ã³ãå®è¡ãã¡ã€ã«ãååšãããã·ã³ã®çš®é¡ã®å®è£
ã®è©³çްãAPIã®èåŸ ã«é èœããããšã«ããã(ããããèšèªã«ãã)ããããèšèªã§æžãããã³ãŒ ããå䜿çšããããšãå¯èœãšããæè¡ã§ããCOMã¯ãããã€ãã®åºæ¬ç㪠ãªããžã§ã¯ãã«ãŒããæããç¹å¥ãªRemote Procedure Call (RPC)æ©æ§ãš èããããšãã§ãããCOMã¯ãå®è£
ãã€ã³ã¿ãŒãã§ã€ã¹ããåé¢ããŸãã
|
COM encourages versioning, separation of implementation from interface and hiding the implementation details such as executable location and the language it was written in.
|
COMã¯ãããŒãžã§ã³ç®¡çãã€ã³ã¿ãŒãã§ã€ã¹ããã®å®è£
ã®åé¢ãå®è¡ãã¡ ã€ã«ã®äœçœ®ãèšè¿°ãããèšèªã®ãããªå®è£
ã®è©³çްã®é èœãæšå¥šããŸãã
|
There is no installation needed to use these functions; they are part of the PHP core.
|
COM颿°ã¯ãWindowsããŒãžã§ã³çã®PHPã§ã®ã¿å©çšå¯èœã§ãã
|
You do not need to load any additional extension in order to use these functions.
|
ãããã®é¢æ°ã¯PHPã³ã¢ã«å«ãŸããããã䜿çšã ãéã«ã€ã³ã¹ããŒã«ã¯äžèŠã§ãã
|
Table 1.
|
ãããã®é¢æ°ã®åäœã¯ã php.ini ã®èšå®ã«ããå€åããŸãã
|
com.autoregister_casesensitive
|
衚 1Com èšå®ãã£ã¬ã¯ãã£ã
|
The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
|
ãããã®å®æ°ã¯ããã®æ¡åŒµã¢ãžã¥ãŒã«ã§å®çŸ©ãããŠããã ãã®æ¡åŒµã¢ãžã¥ãŒã«ãPHPå
éšã«ã³ã³ãã€ã«ãããŠãããå®è¡æã«åçã«ã㌠ãããããã®ã©ã¡ããã®å Žåã®ã¿äœ¿çšå¯èœã§ãã
|
Prev
|
COMã«é¢ããããè©³çŽ°ãªæ
å ±ã«ã€ããŠã¯ã COMèŠçŽ ãŸãã¯Don Boxã® Yet Another COM Library (YACL) ã åç
§äžããã
|
This documentation should be read alongside the ClibPDF manual since it explains the library in much greater detail.
|
ClibPDFã«ãããPDF ããã¥ã¡ã³ããPHPã«ããäœæå¯èœãšãªããŸãã ClibPDFã®æ©èœãšAPIã¯ã PDFlib ã«äŒŒãŠ ããŸãããã®ææžãšãšãã«ããã©ã€ãã©ãªã®è©³çްã説æããŠããClibPDF ã®ããã¥ã¢ã«ãèªãã§äžããã
|
All functions except for cpdf_open() take the handle for the document as their first parameter.
|
å
ã®ClibPDFããã³PHPã¢ãžã¥ãŒã«ã®å€ãã®é¢æ°åã¯ã PDFlib ãšåæ§ã«åãã§ãã cpdf_open() 以å€ã®å
šãŠã®é¢æ°ã¯ãæåã®ãã©ã¡ãŒ ã¿ãšããŠããã¥ã¡ã³ãã®ãã³ãã«ããšããŸãã
|
Actually, you should not even try it, the results are unpredictable.
|
çŸåšããã®ãã³ãã«ã¯å
éšã§äœ¿çšãããŠããŸãããããã¯ã ClibPDFãè€æ°ã®PDFããã¥ã¡ã³ããåæã«äœæããæ©èœããµããŒãã㊠ããªãããã§ããå®éãããã詊ã¿ãŠããçµæã¯æåŸ
ã§ããŸããã ãã«ãã¹ã¬ããç°å¢ã§ã®çµæãäºæž¬ããããšã¯ã§ããŸãããClibPDFã®äœ è
ã«ããã°ãããã¯å°æ¥ã®ãªãªãŒã¹ã§å€æŽãããŸãã (ãããæžããŠããæç¹ã§ã®ææ°çã¯1.10ã§ã)
|
According to the author of ClibPDF this will change in one of the next releases (current version when this was written is 1.10).
|
ClipPDF (ããã³ PDFlib) ãåªããŠã ãã®ã¯ããã³ãã©ãªãã¡ã€ã«ã䜿çšããã« pdf ããã¥ã¡ã³ãã å®å
šã«ã¡ã¢ãªãŒäžã§äœæããããšãå¯èœã§ããããšã§ãã ãããããå®çŸ©ãããåäœé·ãã®åº§æšãæž¡ãæ©èœãæããŠããŸãã (ãã®æ©èœã¯ã PDFlib 颿°ã® pdf_translate() ã§æš¡æ¬ããããšãå¯èœã§ãã)
|
It also provides the ability to pass coordinates in a predefined unit length. (This feature can also be simulated by pdf_translate() when using the PDFlib functions.)
|
ãã®ä»ã®ClibPDFã®æ©èœã§åªããŠããã®ã¯ãæ°èŠã®ããŒãžã®ãªãŒãã³åŸã§ ãã£ãŠãä»»æã®ããŒãžããã€ã§ãä¿®æ£å¯èœã§ãããšããç¹ã§ãã颿° cpdf_set_current_page() ã«ãããã«ã¬ã³ãã®ã㌠ãžãé¢ããŠãä»ã®ããŒãžãä¿®æ£ã§ããããšãåæãšããããšãå¯èœãšãªã ãŸãã
|
The function cpdf_set_current_page() allows to leave the current page and presume modifying an other page.
|
å€ãã®æ©èœã®äœ¿çšæ³ã¯éåžžã«å®¹æã§ããæãå°é£ãªã®ã¯ãããããå
šãæ° èŠã« PDF ããã¥ã¡ã³ããäœæããå Žåã§ããããæ¬¡ã®äŸã¯ãå°å
¥ã®æå© ããšãªãã¯ãã§ãããã®äŸã§ã¯ãããŒãžã1ã€æããããã¥ã¡ã³ããäœæ ããŸãããã®ããŒãžã¯ã30pt ã®ã¢ãŠãã©ã€ã³ãã©ã³ãã§ããã¹ã "Times-Roman" ã«ããæžãããŸããããã¹ãã«ã¯äžç·ãåŒãããŸãã
|
The following example should help you to get started.
|
ClibPDF颿°ã䜿çšããã«ã¯ãClibPDFããã±ãŒãžãã€ã³ã¹ããŒã«ããå¿
èŠããããŸããClibPDFã¯ã FastIO ããããŠã³ããŒãå¯èœã§ãããåçšã§äœ¿çšããå Žåã«ã¯ ã©ã€ã»ã³ã¹ã賌å
¥ããå¿
èŠããããŸãã PHPã§ã¯ãcpdflib = 2ã䜿çšããå¿
èŠããããŸãã
|
It is available for download from FastIO, but requires that you purchase a license for commercial use.
|
ãã®é¢æ°ãåäœããã«ã¯ã --with-cpdflib[=DIR] ãæå®ããŠPHP ãã³ã³ãã€ã«ããå¿
èŠããããŸããDIRã¯cpdflibãã€ã³ã¹ããŒã«ãããã£ã¬ ã¯ããªã§ã /usr ãããã©ã«ãã§ãã ClibPDFã䜿çšããjpegã©ã€ãã©ãªãštiffã©ã€ãã©ãªã®å Žæãæå®ããããš ãã§ããŸãããããè¡ãã«ã¯ãconfigureã«ãªãã·ã§ã³ --with-jpeg-dir[=DIR] ããã³ --with-tiff-dir[=DIR] ãæå®ããŠäž ããã
|
To get these functions to work, you have to compile PHP with --with-cpdflib[ =DIR].
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯èšå®ãã£ã¬ã¯ãã£ããå
šã å®çŸ©ããŸããã
|
In addition you can specify the jpeg library and the tiff library for ClibPDF to use.
|
ãããã®å®æ°ã¯ããã®æ¡åŒµã¢ãžã¥ãŒã«ã§å®çŸ©ãããŠããã ãã®æ¡åŒµã¢ãžã¥ãŒã«ãPHPå
éšã«ã³ã³ãã€ã«ãããŠãããå®è¡æã«åçã«ã㌠ãããããã®ã©ã¡ããã®å Žåã®ã¿äœ¿çšå¯èœã§ãã
|
To do so add to your configure line the options --with-jpeg-dir[ =DIR] --with-tiff-dir[=DIR].
|
äŸ 1ç°¡åãªClibPDFã®äŸ
|
The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
|
pdflib ã®é
åžãã¡ã€ã«ã«ã¯ãã¢ããã°ã¯ããã¯ãæããè€æ°ããŒãžãäœ æããããè€éãªäŸãå«ãŸããŠããŸãã以äžã« ClipPDF æ¡åŒµã䜿çšã㊠ãã®äŸã PHP ã«å€æãããã®ã瀺ããŸãã
|
The pdflib distribution contains a more complex example which creates a series of pages with an analog clock.
|
äŸ 2pdflib 2.0 é
åžãã¡ã€ã«ããã® pdfclock ã®äŸ
|
Example 2. pdfclock example from pdflib 2.0 distribution
|
PDFlib æ¡åŒµã¢ãžã¥ãŒã«ã®ããã¥ã¡ã³ã ãåç
§ããŠäžããã
|
The 'strength' of a password is tested by that checks length, use of upper and lower case and checked against the specified CrackLib dictionary.
|
ãã®ã¢ãžã¥ãŒã«ã®é¢æ°ã«ãããã¹ã¯ãŒãã®åŒ·åºŠã詊ãããã®CrackLibã© ã€ãã©ãªã䜿çšå¯èœãšãªããŸãããã¹ã¯ãŒãã®'匷床'ã¯ãé·ãã倧æå/ å°æåã®äœ¿çšãæå®ããCrackLibã®èŸæžã«å¯ŸããŠç¢ºèªãããŸãã CrackLibã¯ããã¹ã¯ãŒãã'匷åãã'ããã«æçšãªçµ±èšæ
å ±ãåºåã㟠ãã
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.