text
stringlengths 1
254
| output
stringlengths 2
255
|
---|---|
Loading the recode before those extension has proven to fix the problem.
|
æ¬ã¢ãžã¥ãŒã«ã§å®çŸ©ããã颿°ã䜿çšããã«ã¯ã --with-recode[=DIR] ãªãã·ã§ã³ãæå®ããŠPHP ã€ã³ã¿ããªã¿ãã³ã³ãã€ã«ããå¿
èŠããããŸãã
|
This is due to the fact that they both share the same internal symbol.
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯èšå®ãã£ã¬ã¯ãã£ããå
šã å®çŸ©ããŸããã
|
This extension has no resource types defined.
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯ãªãœãŒã¹åãå
šãå®çŸ©ã ãŸããã
|
Prev
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯å®æ°ãå
šãå®çŸ©ããŸã ãã
|
Those functions support non-greedy matching, assertions, conditional subpatterns, and a number of other features not supported by the POSIX-extended regular expression syntax.
|
泚æ PHPã¯ã PCRE颿° ã«ããPerläºæã®æ§ æã䜿çšããæ£èŠè¡šçŸåŒããµããŒãããŸãããããã®é¢æ°ã¯ã貪欲ã§ãª ãããããèšæãæ¡ä»¶ä»ããµããã¿ãŒã³ããããŠPOSIXæ¡åŒµæ£èŠè¡šçŸæ§æ ã§ãµããŒããããŠããªãä»ã®è€æ°ã®æ©èœããµããŒãããŸãã
|
The PCRE functions are.
|
ãããã®æ£èŠè¡šçŸé¢æ°ã¯ãã€ããªã»ãŒãã§ã¯ãããŸããã PCRE颿° ã¯ãã€ããªã»ãŒãã§ãã
|
The functions that support regular expressions are:
|
PHPã«ãããŠæ£èŠè¡šçŸã¯è€éãªæååæäœã«äœ¿çšãããŸãã æ¬¡ã®æ£èŠè¡šçŸé¢æ°ããµããŒããããŸãã
|
ereg()
|
ereg()
|
ereg_replace()
|
ereg_replace()
|
eregi()
|
eregi()
|
eregi_replace()
|
eregi_replace()
|
split()
|
split()
|
spliti()
|
spliti()
|
To enable regexp support configure PHP --with-regex[ =TYPE].
|
ãããã®é¢æ°ã¯ãæšæºã¢ãžã¥ãŒã«ã®äžéšãš ããŠå©çšå¯èœã§ãããåžžã«äœ¿çšã§ããŸãã
|
The default is to use php.
|
PHPã§æ£èŠè¡šçŸã®ãµããŒããæå¹ã«ããã«ã¯ã --with-regex=TYPE ãæå®ã㊠PHPã®configureãè¡ã£ãŠäžãããTYPEã¯ãsystem, apache, phpã®ã©ãããš ããŸããããã©ã«ãã§ã¯phpã䜿çšããŸãã
|
Do not change the TYPE unless you know what you are doing.
|
泚æ åäœã«é¢ããç¥èãããå Žå以å€ã¯ãTYPEã倿Žããªãã§äžããã
|
You do not need to load any additional extension in order to use these functions.
|
Windowsçã® PHP ã«ã¯ãã®æ¡åŒµã¢ãžã¥ãŒã«ã®ãµããŒããçµã¿èŸŒãŸããŠããŸãããããã®é¢æ°ã䜿çšããããã«æ¡åŒµã¢ãžã¥ãŒã«ã远å ã§ããŒãããå¿
èŠã¯ãããŸããã
|
This extension has no configuration directives defined in php.ini.
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯èšå®ãã£ã¬ã¯ãã£ããå
šã å®çŸ©ããŸããã
|
This extension has no constants defined.
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯ãªãœãŒã¹åãå
šãå®çŸ©ã ãŸããã
|
Regular Expression Examples
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯å®æ°ãå
šãå®çŸ©ããŸã ãã
|
For regular expressions in Perl-compatible syntax have a look at the PCRE functions.
|
äŸ 1æ£èŠè¡šçŸã®äŸ
|
Prev
|
Perläºæã®æ§æãæããæ£èŠè¡šçŸã«ã€ããŠã¯ã PCRE颿° ãåç
§ããŠäžããã ç°¡åãªã·ã§ã«åœ¢åŒã®ã¯ã€ã«ãã«ãŒããã¿ãŒã³ãããã³ã°ã fnmatch() ã§æäŸãããŠããŸãã
|
It includes semaphores, shared memory and inter-process messaging (IPC).
|
ãã®ã¢ãžã¥ãŒã«ã¯ãSystem V IPCé¢é£ã®é¢æ°ãžã®ã©ãããŒãæäŸããŸãã
|
This module provides also shared memory functions using System V shared memory.
|
ã»ããã©ã¯ããã·ãŒã³äžã®ãªãœãŒã¹ãžã®æä»çã¢ã¯ã»ã¹æ©èœãã åæã«ãããªãœãŒã¹ã䜿çšããããšãã§ããããã»ã¹ã®æ°ãå¶éãããã㫠䜿çšããããšãã§ããŸãã
|
Different httpd-daemons and even other programs (such as Perl, C,...) are able to access this data to provide a global data-exchange.
|
ãã®ã¢ãžã¥ãŒã«ã¯ãã·ã¹ãã V å
±æã¡ã¢ãªã䜿çšããŠå
±æã¡ã¢ãªé¢æ°ã æäŸããŸããå
±æã¡ã¢ãªã¯ãã°ããŒãã«å€æ°ãžã®ã¢ã¯ã»ã¹ææ®µãæäŸãããã㫠䜿çšããããšãå¯èœã§ããå¥ã® httpd ããŒã¢ã³ããã³ (Perl, C,... ã®ãããª)ä»ã®ããã°ã©ã ãããã°ããŒãã«ããŒã¿äº€æã æäŸãããã®ããŒã¿ã«ã¢ã¯ã»ã¹ããããšãå¯èœã§ãã å
±æã¡ã¢ãªã¯ãåæã¢ã¯ã»ã¹ã«é¢ããŠå®å
šã§ã¯ãªããšããããšãèŠããŠãã㊠äžããã åæããšãã«ã¯ãã»ããã©ã䜿çšããŠäžããã
|
Use semaphores for synchronization.
|
衚 1Unix OS ã«ããå
±æã¡ã¢ãªã®å¶é
|
They provide a simple and effective means of exchanging data between processes, without the need for setting up an alternative using unix domain sockets.
|
ã¡ãã»ãŒãžã³ã°é¢æ°ã¯ãä»ã®ããã»ã¹ãšçžäºã«ã¡ãã»ãŒãžãéåä¿¡ãã ããã«äœ¿çšããããšãã§ããŸãã ããã«ããç°¡åã§å¹ççãªããã»ã¹éã®ããŒã¿äº€æãå¯èœã§ããã UNIXãã¡ã€ã³ãœã±ãããçšããå Žåã®ãããªèšå®ã¯äžèŠã§ãã
|
No external libraries are needed to build this extension.
|
泚æ ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯Windowsç°å¢ã§ã¯å©çšã§ããŸããã
|
To enable System V semaphore support compile PHP with the option --enable-sysvsem.
|
ãããã®é¢æ°ã¯ãæšæºã¢ãžã¥ãŒã«ã®äžéšãš ããŠå©çšå¯èœã§ãããåžžã«äœ¿çšã§ããŸãã
|
To enable the System V messages support compile PHP with the option --enable-sysvmsg.
|
ãã®é¢æ°ã¯ããã©ã«ãã§ã¯æå¹ã«ãªã£ãŠã¯ããŸãããSystem Vã»ããã©ãµã㌠ããæå¹ã«ããã«ã¯ããªãã·ã§ã³ --enable-sysvsem ãæå®ããŠPHPãã³ ã³ãã€ã«ããå¿
èŠããããŸããSystem Vå
±æã¡ã¢ãªãµããŒããæå¹ã«ããã« ã¯ããªãã·ã§ã³ --enable-sysvshm ãæ å®ããŠPHPãã³ã³ãã€ã«ããå¿
èŠããããŸããSystem Vã¡ãã»ãŒãžãæå¹ã« ããã«ã¯ããªãã·ã§ã³ --enable-sysvmsg ãæå®ããŠPHPãã³ã³ãã€ã« ããŸãã
|
Table 2.
|
ãããã®é¢æ°ã®åäœã¯ã php.ini ã®èšå®ã«ããå€åããŸãã
|
Name
|
衚 2ã»ããã©èšå®ãªãã·ã§ã³
|
Prev
|
ãã®æ¡åŒµã¢ãžã¥ãŒã«ã¯å®æ°ãå
šãå®çŸ©ããŸã ãã
|
It runs on high-end mainframe servers using the operating system BS2000 / OSD.
|
SESAM/SQL-Server ã¯ããã€ãã® Fujitsu Siemens ã³ã³ãã¥ãŒã¿ã«ããé çºãããã¡ã€ã³ãã¬ãŒã äžã®ããŒã¿ããŒã¹ã·ã¹ãã ã§ãããã®ããŒã¿ã㌠ã¹ã¯ããã€ãšã³ãã®ã¡ã€ã³ãã¬ãŒã äžã§ãªãã¬ãŒãã£ã³ã°ã·ã¹ãã BS2000/OSD ã䜿çšããŠåäœããŸãã
|
the ease of use of Java-, Web - and client / server connectivity,
|
æ°å€ãã®BS2000ã·ã¹ãã ã«ãŠå®éçšãããSESAM/SQL-Server ã¯ä»¥äžã®äº é
ãå®èšŒããŠããŸãã
|
the ability to manage tens and even hundreds of thousands of users.
|
JavaãWeb ããŒã¹ã®ã¯ã©ã€ã¢ã³ã/ãµãŒãæ¥ç¶ãç°¡åã«å¯èœ
|
Note:
|
99.99% 以äžã®ç¢ºçã§æå¹ã«åäœããèœå
|
PHP 4 does not support the SESAM database.
|
æ°äžããæ°åäžã®ãŠãŒã¶ã管çããèœå
|
Name of BS2000 PLAM library containing the loadable SESAM driver modules.
|
PHPã¹ã¯ãªããã«ããããŒã¿ããŒã¹åŠçãå¯èœã«ãã PHP3 SESAM ã€ã³ã¿ãŒ ãã§ãŒã¹ãå©çšå¯èœã§ãã
|
The BS2000 PLAM library must be set ACCESS=READ,SHARE=YES because it must be readable by the apache server 's user id.
|
泚æ SESAMãžã®ã¢ã¯ã»ã¹ã¯ãCVSçã® PHP3 ã§ã®ã¿å¯èœã§ ãã PHP 4 ã¯ãSESAMããŒã¿ããŒã¹ããµããŒãã㟠ããã
|
Required for using SESAM functions.
|
ãããã®é¢æ°ã®åäœã¯ã php.ini ã®èšå®ã«ããå€åããŸãã
|
The application configuration file will usually contain a configuration like (see SESAM reference manual):
|
ããŒãå¯èœãªSESAMãã©ã€ãã¢ãžã¥ãŒã«ãå«ãBS2000 PLAM ã©ã€ãã© ãªã®ååãSESAM颿°ã䜿çšããéã«å¿
èŠãBS2000 PLAMã©ã€ãã©ãªã¯ã ACCESS=READ,SHARE=YES ã«èšå®ããå¿
èŠããããŸããããã¯ãApache ãµãŒãã®ãŠãŒã¶IDã«ããèªã¿èŸŒã¿å¯èœãšããå¿
èŠãããããã§ãã
|
Name of SESAM message catalog file.
|
SESAMã¢ããªã±ãŒã·ã§ã³èšå®ãã¡ã€ã«ã®ååãSESAM颿°ã䜿çšããé ã«å¿
èŠãBS2000 ãã¡ã€ã«ã¯ãApacheã®ãŠãŒã¶IDã«ããèªã¿èŸŒã¿å¯ãš ããå¿
èŠããããŸãã
|
Only if the SESAM message file is not installed in the system 's BS2000 message file table, it can be set with this directive.
|
ã¢ããªã±ãŒã·ã§ã³èšå®ãã¡ã€ã«ã¯ãéåžžãæ¬¡ã®ãããªèšå®ãæããŠã ãŸãã(SESAMãªãã¡ã¬ã³ã¹ãåç
§)
|
There is no standalone support for the PHP SESAM interface, it works only as an integrated Apache module.
|
SESAMã¡ãã»ãŒãžã«ã¿ãã°ãã¡ã€ã«ã®ååãå€ãã®å Žåããã®ãã£ã¬ ã¯ãã£ãã¯äžèŠã§ããSESAMã¡ãã»ãŒãžãã¡ã€ã«ãã·ã¹ãã ã®BS2000 ã¡ãã»ãŒãžãã¡ã€ã«ããŒãã«ã«ã€ã³ã¹ããŒã«ãããŠããªãå Žåã«ã®ã¿ ãã®ãã£ã¬ã¯ãã£ããèšå®ããããšãå¯èœã§ãã
|
Table 1.
|
ã¡ãã»ãŒãžã«ã¿ãã°ã¯ãACCESS=READ,SHARE=YES ã«èšå®ããå¿
èŠãã ããŸããããã¯ãApache ãµãŒãã®ãŠãŒã¶IDããèªã¿èŸŒã¿å¯èœãšãã å¿
èŠããããŸãã
|
Directive
|
PHP SESAMã€ã³ã¿ãã§ãŒã¹ã¯ãã¹ã¿ã³ãã¢ãã³çããµããŒãããŠããŸããã Apache ã¢ãžã¥ãŒã«çãšããŠçµã¿èŸŒãŸããå Žåã®ã¿åäœããŸããApache PHP ã¢ãžã¥ãŒã«ã«ãããŠã SESAMã€ã³ ã¿ãã§ãŒã¹ ã¯ãApache çšãã£ã¬ã¯ãã£ãã«ããèšå®ãããŸãã
|
php3_sesam_oml $.SYSLNK.SESAM-SQL.030
|
衚 1SESAM èšå®çšãã£ã¬ã¯ãã£ã
|
Example:
|
äŸ:
|
CNF=B NAM=K NOTYPE
|
äŸ:
|
Example:
|
äŸ:
|
In addition to the configuration of the PHP / SESAM interface, you have to configure the SESAM-Database server itself on your mainframe as usual.
|
PHP/SESAMã€ã³ã¿ãŒãã§ãŒã¹ã®èšå®ã«å ããŠãã¡ã€ã³ãã¬ãŒã äžã®SESAM ããŒã¿ããŒã¹ãµãŒããŒèªäœãèšå®ããå¿
èŠããããŸããããã¯ã次ã®ã ãã«ãªããŸãã
|
starting the SESAM database handler (DBH), and
|
SESAMããŒã¿ããŒã¹ãã³ãã©(DBH)ãéå§
|
To get a connection between a PHP script and the database handler, the CNF and NAM parameters of the selected SESAM configuration file must match the id of the started database handler.
|
SESAMããŒã¿ããŒã¹ãã³ãã©ãæå®ããŠãããŒã¿ããŒã¹ã«æ¥ç¶
|
The communication between PHP (running in the POSIX subsystem) and the database handler (running outside the POSIX subsystem) is realized by a special driver module called SQLSCI and SESAM connection modules using common memory.
|
PHPã¹ã¯ãªãããšããŒã¿ããŒã¹ãã³ãã©ã®éã®æ¥ç¶ãåŸãã«ã¯ãéžæãã SESAMèšå®ãã¡ã€ã«ã®ãã©ã¡ãŒã¿ CNF ããã³ NAM ãå®è¡äžã®ããŒã¿ããŒã¹ãã³ãã©ã®IDã«äžèŽã ãŠããå¿
èŠããããŸãã
|
Only a small stub loader (SESMOD) is linked with PHP, and the SESAM connection modules are pulled in from SESAM's OML PLAM library.
|
忣åããŒã¿ããŒã¹ã®å Žåããã¹ãããã³ããŒã¿ããŒã¹åãæããåé
ããŒãã«ãæå®ããŠSESAM/SQL-DCNãšãŒãžã§ã³ããéå§ããå¿
èŠããã㟠ãã
|
This will slightly slow down the initial SESAM request of each child, but subsequent accesses will respond at full speed.
|
ã¹ã¢ãŒã«ã¹ã¿ãããŒã(SESMOD)ã®ã¿ãPHPã«ãªã³ã¯ãããŠãããSESAMæ¥ ç¶ã¢ãžã¥ãŒã«ã¯SESAMã®OML PLAMã©ã€ãã©ãªããããŒããããŸãã èšå® ã®éããã®PLAMã©ã€ãã© ãªã®ååãšSESAMèšå®ãã¡ã€ã«ã䜿çšããããã®ãã¡ã€ã«ãªã³ã¯ãPHPã« æå®ããå¿
èŠããããŸãã(SESAM V3.0 ã«ãããŠãSQLSCI ã¯æšæºé
åžã® SESAMããŒã«ã©ã€ãã©ãªããå
¥æå¯èœã§ã)
|
The BS2000 operating system prints a message after successful load of the message catalog, which will be sent to Apache 's error_log file.
|
SQLã³ãã³ãã«ãããã·ã³ã°ã«ã¯ãªãŒãã®ã¯ãªãŒãã¯ã(ã·ã³ã°ã«ã¯ãªãŒ ãã®åã«ããã¯ã¹ã©ãã·ã¥ãä»å ããã®ã§ã¯ãªãã)ã·ã³ã°ã«ã¯ãªãŒãã 2ã€éããŠäœ¿çšãããããSESAMã€ã³ã¿ãŒãã§ãŒã¹ã䜿çšããå
šãŠã®PHPã¹ ã¯ãªããã«ã€ããŠãPHPèšå®ãã£ã¬ã¯ãã£ãã§ php3_magic_quotes_gpc ããã³ php3_magic_quotes_sybase ã On ã«ããŠããæ¹ãè³¢æã§ãããã
|
Otherwise, the server will be unable to load the driver, and will not allow to call any SESAM functions.
|
BS2000 ã¢ãã«ã®å¶éã®ããã«ããã©ã€ãã¯ãApache ãµãŒãããã®ãµãŒ ãã®åããã»ã¹ããã©ãŒã¯ããåŸã«ã®ã¿ããŒãå¯èœãšãªããŸããããã¯ã ååããã»ã¹ã®æåã®SESAMãªã¯ãšã¹ããè¥å¹²é
ãããŸããããã®åŸã®ã¢ ã¯ã»ã¹ãžã®å¿çã¯æé«é床ãšãªããŸãã
|
Otherwise, connections to the SESAM database handler will fail.
|
SESAMçšã®æç€ºçã«ã¡ãã»ãŒãžã«ã¿ãã°ãå®çŸ©ããå Žåããã®ã«ã¿ãã°ã¯ ãã©ã€ããããŒãããã床(ããªãã¡ãæåã®SESAMãªã¯ãšã¹ãæã«)ã«ã㌠ããããŸããBS2000 ãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã¯ã¡ãã»ãŒãžã«ã¿ãã°ã® ããŒãã«æåããåŸã«ã¡ãã»ãŒãžãåºåããŸãããã®ã¡ãã»ãŒãžã¯ã Apacheã®error_logãã¡ã€ã«ã«éä¿¡ãããŸããBS2000ã¯çŸåšããã®ã¡ãã»ãŒ ãžã®åºåã忢ããããšãã§ããŸããããã®ããããã°ã段ã
ãšåã㊠ãããŸãã
|
Because of the larger memory overhead needed by "scrollable" cursors, the default is "sequential ".
|
SESAM OML PLAM ã©ã€ãã©ãªãšSESAMèšå®ãã¡ã€ã«ã¯ãWebãµãŒããå®è¡ã ãŠãããŠãŒã¶IDããèªã¿èŸŒã¿å¯èœã§ããããšã確èªããŠäžãããããã§ ãªãå ŽåããµãŒãã¯ãã©ã€ããããŒãããããšãã§ãããSESAM颿°ãã³ãŒ ã«ããããšãã§ããŸããããŸããApacheãµãŒããå®è¡ããŠãããŠãŒã¶ID ã«ããŒã¿ããŒã¹ãžã®ã¢ã¯ã»ã¹ãèš±å¯ãããŠããå¿
èŠããããŸããããã§ ãªãå ŽåãSESAMããŒã¿ããŒã¹ãã³ãã©ãžã®æ¥ç¶ã¯å€±æããŸãã
|
For each "scrollable" query, there are global default values for the scrolling type (initialized to:
|
SQL "select å"ã¯ãšãªçšã«ç¢ºä¿ãããçµæã«ãŒãœã«ã¯ã"sequential"㟠ãã¯"scrollable"ã®ã©ã¡ãããšããããšãå¯èœã§ãã"scrollable"ã«ãŒ ãœã«ã§å¿
èŠãªã¡ã¢ãªãªãŒããããã¯ãã倧ãããããããã©ã«ã㯠"sequential" ã§ãã
|
Auto-Increment internal offset value
|
衚 2ã¹ã¯ããŒã«åŸã®ã«ãŒãœã«ã«é¢ãããã¹ãåŠç
|
E.g., when retrieving columns with sesam_fetch_row(), the first column has the index 0, and the subsequent columns have indexes up to (but not including) the column count ($array["count"]).
|
SESAMããŒã¿ããŒã¹ãžã®ã¢ã¯ã»ã¹ãå¯èœãªå ŽåãWebãµãŒãã®ãŠãŒã¶ã¯ã å¯èœãªéãå°ããªæš©éã®ã¿ãæããŠããå¿
èŠããããŸããå€ãã®ããŒã¿ ããŒã¹ã§ã¯èš±å¯ããå¿
èŠãããã®ã¯èªã¿èŸŒã¿æš©éã®ã¿ã§ãã䜿çšããèš å®ã«å¿ããŠç¶æ³ã«èŠåã£ãã¢ã¯ã»ã¹æš©éã远å ããŠäžãããæ±ºããŠãã ãããã®å
šãŠã®ãŠãŒã¶ã«å
šãŠã®ããŒã¿ããŒã¹ãžã®å®å
šãªå¶åŸ¡æš©ãèš±å¯ã ãªãã§äžãã! ããŒã¿ããŒã¹ã管çããPHPã¹ã¯ãªãããžã®ã¢ã¯ã»ã¹å¶é ã¯ããã¹ã¯ãŒãå¶éãŸãã¯SSLã»ãã¥ãªãã£ã«ããå¶éããŠäžããã
|
When allowing access to the SESAM databases, the web server user should only have as little privileges as possible.
|
SQLã«ã¯æ¹èšããããã100%äºæã§ã¯ãããŸãããä»ã®ããŒã¿ããŒã¹ã€ã³ ã¿ãŒãã§ãŒã¹ããSQLã¢ããªã±ãŒã·ã§ã³ãSESAMã«ç§»æ€ããéã«ã¯ããã ã€ãã®ä¿®æ£ãå¿
èŠã«ãªãå¯èœæ§ããããŸããæ¬¡ã®ãããªå
žåçãªå·®ç°ã« 泚æããå¿
èŠããããŸãã
|
Depending on your usage scenario, add more access rights as you see fit.
|
ãã³ãåºæã®ããŒã¿å
|
Restrict access to php scripts which must administer the database by using password control and / or SSL security.
|
ããã€ãã®ãã³ãåºæã®ããŒã¿åã¯ãæšæºçãªSQLããŒã¿åã§çœ®æã ãå¿
èŠããããŸãã(äŸãã°ã TEXT 㯠VARCHAR(max. size) ã§çœ®æå¯èœã§ãã)
|
The following typical differences should be noted:
|
SQL IDãšåãããŒã¯ãŒã
|
Keywords as SQL identifiers
|
SESAM ã§ã¯(éåžžã®SQLãšåæ§ã«)ãã®ãããªIDã¯2éåŒçšä»ã§æ¬ã(ã ããã¯ååãå€ãã)å¿
èŠããããŸãã
|
Display length in data types
|
ããŒã¿åã®è¡šç€ºé·
|
Instead of int( 4) (intended use: integers up to '9999'), SESAM requires simply int Instead of int(4) (intended use: integers up to '9999'), SESAM requires simply int for an implied size of 31 bits.
|
SESAM ããŒã¿åã¯è¡šç€ºé·ã§ã¯ãªãããã粟床ãæããŠããŸãã int(4) (æå³ãããäœ¿çšæ³:'9999'ãŸã§ã®æŽæ°)㮠代ããã«ãSESAM ã¯åã«31ãããé·ã® int ãèŠæ± ããŸãããŸããSESAMã§å©çšå¯èœãªæ¥ä»æå»åã¯æ¬¡ã®ãã®ã ãã§ãã DATE ã TIME(3) ã TIMESTAMP(3)
|
DATE, TIME( 3) and TIMESTAMP(3).
|
ãã³ãåºæã®SQLå unsigned ã zerofill ã auto_increment 屿§
|
Unsigned and zerofill are not supported.
|
unsigned ãš zerofill 㯠ãµããŒããããŸããã auto_increment ã¯èªåã§ ãã(SESAMã«å®è£
ãããèªåã€ã³ã¯ãªã¡ã³ãã®å©ç¹ã掻ããããã«ã "... VALUES(0,...)" ã®ä»£ããã« "INSERT... VALUES(*, ...)" ã䜿çšããŠäžã ãã)
|
Use DEFAULT 0 instead.
|
int... DEFAULT '0000'
|
CREATE TABLE exmpl (xtime timestamp(3) DEFAULT TIMESTAMP '1970-01-01 00:00:00.000 'NOT NULL);
|
æ°å€å€æ°ã¯ãæåå宿°ã§åæåããã¹ãã§ã¯ãããŸããã代ããã« DEFAULT 0 ã䜿çšããŠäžãããSQLããŒã¿å datetime ã®å€æ°ãåæåããéãåæåæååã«ã¯ã次ã®ããã«é© åœãªåããŒã¯ãŒããåã«ä»å ããå¿
èŠããããŸãã CREATE TABLE exmpl (xtime timestamp(3) DEFAULT TIMESTAMP '1970-01-01 00:00:00.000' NOT NULL);
|
Some databases promise to guess / estimate the number of the rows in a query result, even though the returned value is grossly incorrect.
|
$count = xxxx_num_rows();
|
If you REALLY need the count, try SELECT COUNT(...) WHERE..., it will tell you the number of hits.
|
ããã€ãã®ããŒã¿ããŒã¹ã¯ãè¿ãããå€ãèããäžæ£ç¢ºã§ãããšã㊠ããã¯ãšãªçµæã®ã¬ã³ãŒãæ°ãæšå®ãŸãã¯èŠç©ããããšããŸãã SESAM ã¯ã¯ãšãªçµæã®ã¬ã³ãŒãæ°ãå®éã«ååŸããåã«ç¥ãããšã¯ã ããŸããããã®æ°ãå®éã«å¿
èŠãªå Žåã«ã¯ã SELECT COUNT(...) WHERE... ã詊ããŠã¿ãŠäž ããããã®ã¯ãšãªã¯ããããæ°ãååŸããŸãã2çªç®ã®ã¯ãšãªã¯(çæ³ çã«ã¯)çµæãè¿ããŸãã
|
DROP TABLE thename;
|
DROP TABLE thename;
|
When specifying RESTRICT, an error is returned if there are dependent objects (e.g., VIEWs), while with CASCADE, dependent objects will be deleted along with the specified table.
|
SESAMã§ã¯ã DROP TABLE ã«ãããŠããŒãã«åã® åŸã«ããŒã¯ãŒã RESTRICT ãŸã㯠CASCADE ã®ã©ã¡ãããåŸã«ä»å ããå¿
èŠããã ãŸãã RESTRICT ãæå®ããå Žåã(VIEWã®ãã ãª)äŸåãããªããžã§ã¯ããããå Žåã«ãšã©ãŒãè¿ãããŸãããŸãã CASCADE ãæå®ããå ŽåãäŸåãããªããžã§ã¯ ãã¯æå®ããããŒãã«ããåé€ãããŸãã
|
A future version of SESAM will have support for BLOB.
|
SESAM ã¯çŸåšBLOBåããµããŒãããŠããŸãããSESAMã®å°æ¥ã®ããŒãžã§ã³ ã¯ãBLOBããµããŒãããäºå®ã§ãã
|
Table 3.
|
PHP ã€ã³ã¿ãŒãã§ãŒã¹ã§ã¯ãSQLãã£ãŒã«ããååŸããéã«æ¬¡ã®å倿ã èªåçã«é©çšãããŸãã
|
NUMERIC, DECIMAL, FLOAT, REAL, DOUBLE
|
衚 3SQL ãã PHP ãžã®å倿
|
Such a "multiple field" column can be created like this:
|
SESAMç¹æã®"è€æ°ãã£ãŒã«ã"æ©èœã«ããè€æ°ã®ãã£ãŒã«ãã®é
åãã㪠ãã«ã©ã ã䜿çšããããšãå¯èœã§ãã"è€æ°ãã£ãŒã«ã"ã«ã©ã äºã¯ã次 ã®ããã«äœæå¯èœã§ãã
|
CREATE TABLE multi_field_test (pkey CHAR(20) PRIMARY KEY, multi(3) CHAR(12))
|
äŸ 1"è€æ°ãã£ãŒã«ã"ã«ã©ã ãäœæãã
|
Filling a "multiple field" column
|
äŸ 2"è€æ°ãã£ãŒã«ã"ã«ã©ã ã«ä»£å
¥ãã
|
When retrieving a result row, "multiple columns" are accessed like "inlined "additional columns.
|
çµæã¬ã³ãŒããååŸããéã"è€æ°ã«ã©ã "ã¯"ã€ã³ã©ã€ã³ã®"ä»å ã«ã©ã ã®ããã«ã¢ã¯ã»ã¹ãããŸããäžã®ã«ãããŠã"pkey" ã¯æ·»å0ãæãã3〠ã®"multi(1..3)" ã«ã©ã ã¯æ·»å1ãã3ã§ã¢ã¯ã»ã¹å¯èœã§ãã
|
For specific SESAM details, please refer to the SESAM / SQL-Server documentation (english) or the SESAM / SQL-Server documentation (german), both available online, or use the respective manuals.
|
SESAMåºæã®äºé
ã«ã€ããŠè©³çްã¯ã the SESAM/SQL-Serverããã¥ã¡ã³ã(è±èª) ãŸã㯠SESAM/SQL-Server ããã¥ã¡ã³ã(ãã€ãèª) ãåç
§äžãããå
±ã«ãªã³ã©ã€ã³ã§åç
§å¯èœã§ãããããã¯ãé© åœãªããã¥ã¢ã«ã䜿çšããŠäžããã
|
This enables you to build more customized applications and increase the appeal of your web site.
|
PHPã®ã»ãã·ã§ã³ãµããŒãæ©èœã¯ãè€æ°åã®ã¢ã¯ã»ã¹ãéããŠç¹å®ã®ã㌠ã¿ãä¿æããææ®µãå®çŸãããã®ã§ããããã«ãããããã«ã¹ã¿ãã€ãºã ããã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããèªåã® Web ãµã€ãã®ã¢ããŒã«åºŠãå¢å ãããããšãå¯èœãšãªããŸãã
|
A visitor accessing your web site is assigned an unique id, the so-called session id.
|
PHPLIB ã®ã»ãã·ã§ã³ç®¡çã«ç²ŸéããŠããå Žåã«ã¯ããã®ã³ã³ã»ãããPHPã® ã»ãã·ã§ã³ãµããŒãã«äŒŒãŠããããšã«æ°ã¥ãããšã§ãããã
|
The session support allows you to register arbitrary numbers of variables to be preserved across requests.
|
Web ãµã€ãã®èšªåè
ã«ã¯ã»ãã·ã§ã³IDãšãããŠããŒã¯ãªIDãå²ãã€ããã ãŸãããã®IDã¯ããŠãŒã¶ãŒåŽã«ã¯ãããŒãšããŠä¿åãããããŸãã¯ãURL ã«åã蟌ã¿ãŸãã
|
If this is the case, the prior saved environment is recreated.
|
ã»ãã·ã§ã³ãµããŒãæ©èœã«ãããä»»æã®æ°ã®å€æ°ããªã¯ãšã¹ãéã§åããããã ããã«ãªããŸããæ¥èšªè
ããµã€ãã«ã¢ã¯ã»ã¹ããéã PHP ã¯ç¹å®ã®ã»ãã·ã§ã³IDããªã¯ãšã¹ããšãšãã«éä¿¡ãããŠãããã©ããã (session.auto_start ã 1 ã®å Žåã¯)èªåçã«ããŸã㯠(session_start() ã«ããæç€ºçãªãããã㯠session_register() ã«ããæé»ã®) èŠæ±ãåããŠç¢ºèªããŸãã ãã®IDãéä¿¡ãããŠããå Žåã«ã¯ã以åä¿åããã倿°ãåçŸãããŸãã
|
On subsequent accesses, these are not defined by the session module unless the user defines them later.
|
å
šãŠã®ç»é²ããã倿°ã¯ããªã¯ãšã¹ããçµäºããåŸã«ãã·ãªã¢ã«åãããŸãã æªå®çŸ©ã®ç»é²å€æ°ã¯ãæªå®çŸ©ãšããŠããŒã¯ä»ããããŸãã åŸã§ãŠãŒã¶ãŒããããã®å€æ°ãå®çŸ©ããªãéãã以éã®ã¢ã¯ã»ã¹ã«ãã㊠ã»ãã·ã§ã³ã¢ãžã¥ãŒã«ã«ããå®çŸ©ãããŸããã
|
Note:
|
泚æ ã»ãã·ã§ã³åŠçæ©èœã¯ãPHP 4.0 ã§ãµããŒããããŸããã
|
This holds true regardless of if a session has been started using the session_start() function.
|
泚æ ã»ãã·ã§ã³ãåŠçããŠããæã session_register() 颿°ã䜿çšããã ã¹ãŒããŒã°ããŒãã«é
å $_SESSION ãžæ°ããããŒã 远å ããããšã«ãã倿°ãç»é²ããããŸã§ãã»ãã·ã§ã³ã®ã¬ã³ãŒãã¯äœ æãããªãããšã«æ³šæããŠäžãããããã¯ãã»ãã·ã§ã³ã session_start() 颿°ã«ããéå§ãããŠããå Žåã§ ãçã§ãã
|
You need to take additional measures to actively protect the integrity of the session, depending on the value associated with it.
|
ã»ãã·ã§ã³ã®äœ¿çšã¯ãã»ãã·ã§ã³ããŒã¿ã察å¿ãããŠãŒã¶ã®ã¿ã«èŠãã ãšãã§ããããšã絶察çã«ä¿èšŒã§ããããšãæå³ããŸããã ããã¯ãéèŠãªæ
å ±ãä¿åããã衚瀺ããå Žåã«çæãã¹ãéèŠãªäº å®ã§ããããŒã¿ãã»ãã·ã§ã³ã«ä¿åããå Žåã ãã®æ
å ±ãä»ã®èª°ããèŠãå Žåã«çºçããæå®³ã¯äœããšãã ãã®ã»ãã·ã§ã³ãå®éã«ã¯ä»ã®èª°ãã®å Žåã«ãèªåã®ã¢ããªã±ãŒã·ã§ã³ ãã©ã®ãããªåœ±é¿ãåããããåžžã«èªåããå¿
èŠããããŸãã
|
For example, if you want to protect users from simple social engineering tactics, you need to enable session.use_only_cookies.
|
äŸãã°ãä»ã®èª°ããããã»ãã·ã§ã³ãåŸãå Žåããã®ãŠãŒã¶ãšã㊠ãã©ãŒã©ã ã«ã¡ãã»ãŒãžãæçš¿ããããšãã§ããŸããããã®åé¡ã®å€§ã ãã¯ã©ã®çšåºŠã§ãããã? ãŸãã¯ã圌ã¯ãå
ã®ãŠãŒã¶ã®è²·ããã®ããã«ã¢ã¯ã»ã¹ã§ããããããã® ãŠãŒã¶ã泚æããããšããŠãããã®ãèŠãããšãã§ãããããããŸããã æããã«ãè¬å±ãããè±å±ã®æ¹ãåé¡ã¯å°ããã§ãããã
|
A leaked session id enables the third party to access all resources which are associated with a specific id.
|
ãã®ãããéèŠãªæ
å ±ãåŠçããå Žåãæå¹ãªã»ãã·ã§ã³ãã©ãããæ±º ããä»ã®æ¹æ³ãåžžã«çšæããå¿
èŠããããŸããã»ãã·ã§ã³ã¯ã»ãã¥ã¢ãª èªèšŒæ©æ§ã®ããã«ä¿¡é Œã§ãããã®ã§ã¯ãããŸããã
|
Second, a more active attacker might listen to your network traffic.
|
ã»ãã·ã§ã³ã¯ã»ãã·ã§ã³IDã«åºã¥ããŠãããããã¯ãã»ãã·ã§ã³IDãç ãããšã«ãããã»ãã·ã§ã³ããçããããšãã§ããããšãæå³ããŸãã ããã¯ãã»ãã·ã§ã³Cookieã䜿çšããããšã«ããå°é£ãšãªããŸããã äžå¯èœã«ããããã§ã¯ãªããäŸç¶ãšããŠãŠãŒã¶ãå
šãŠã®ãã©ãŠã¶ãŠã€ã³ ããŠãéããŠãã»ãã·ã§ã³Cookieãæéåããšããããšã«äŸåããŠã㟠ãããŸããã»ãã·ã§ã³Cookieã§ããããããã¯ãŒã¯ã§çèŽããããã ãããã·ãµãŒãã«ããèšé²ããããããŸãã
|
The solution here is to implement SSL on your server and make it mandatory for users.
|
ãããã®é¢æ°ã¯ãæšæºã¢ãžã¥ãŒã«ã®äžéšãš ããŠå©çšå¯èœã§ãããåžžã«äœ¿çšã§ããŸãã
|
It might be more appropiate to use a shared memory based filesystem (such as tmpfs on Solaris / Linux, or / dev / md on BSD) to store sessions in files, because they are properly locked.
|
泚æ ãªãã·ã§ã³ã§ãRalf S. Engelschallã«ããéçºãããã»ãã·ã§ã³ã®ä¿ åçšã®å
±æã¡ã¢ãª(mm)ã䜿çšããããšãå¯èœã§ãã mm ãããŠã³ããŒãããã€ã³ã¹ããŒã«ã ãããšãã§ããŸãããã®ãªãã·ã§ã³ã¯ãWindowsãã©ãããã©ãŒã ã§ã¯ å©çšã§ããŸããã
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.