text
stringlengths 1
254
| output
stringlengths 2
255
|
---|---|
string $arr[ col]["scale"]
|
"TIME"
|
The "scale" attribute is used with numeric data types.
|
"TIMESTAMP"
|
See the sesam_query() function for an example of the sesam_field_array() use.
|
sesam_field_array() ã®äœ¿çšäŸã«ã€ããŠã¯ã sesam_query() 颿°ãåç
§äžããã
|
Prev
|
(PHP 3 CVS only)
|
Returns the name of a field (i.e., the column name) in the result set, or FALSE on error.
|
çµæéåã®äžã®ãã£ãŒã«ãå(ããªãã¡ãã«ã©ã å)ãŸãã¯ãšã©ãŒã®éã« FALSE ãè¿ããŸãã
|
Note:
|
"峿å"ã¯ãšãªãŸãã¯åçãªã«ã©ã ã®å Žåãç©ºã®æååãè¿ãããŸãã
|
See also: sesam_field_array().
|
泚æ ã«ã©ã ã®æ·»åã¯ãSESAMã®ããã«1ããå§ãŸããã0ããå§ãŸããŸãã
|
Prev
|
sesam_field_array() ãåç
§äžããããã®é¢æ°ã¯ã ã«ã©ã åããã³åã«ããç°¡åã«ã¢ã¯ã»ã¹ããã€ã³ã¿ãŒãã§ãŒã¹ãæäŸãã "è€æ°ãã£ãŒã«ã"ã®æ€åºãå¯èœã«ãªããŸãã
|
(PHP 3 CVS only)
|
(PHP 3 CVS only)
|
Returns FALSE on error.
|
result_id ãæãã¯ãšãªã«é¢ãããªãœãŒã¹ãé æŸããŸãããšã©ãŒã®å Žåã« FALSE ãè¿ããŸãã
|
(PHP 3 CVS only)
|
(PHP 3 CVS only)
|
Returns an integer describing the total number of columns (aka. fields) in the current result_id result set or FALSE on error.
|
"selectå"ã¯ãšãªã§ sesam_query() ãã³ãŒã«ããåŸã ãã®é¢æ°ã«ããçµæã®ã«ã©ã æ°ãåŸãããšãå¯èœã§ããå
šäœã®ã«ã©ã (㟠ãã¯ãã£ãŒã«ã)ã®æ°ãèšè¿°ããæŽæ°ãè¿ããŸãã
|
The SESAM "multiple field" columns count as their respective dimension, i.e., a three-column "multiple field "counts as three columns.
|
"峿å"åœä»€ã®å Žåãå€0ãè¿ãããŸããSESAM"è€æ°ãã£ãŒã«ã"ã«ã©ã ã¯ãããããã®æ¬¡å
æ¯ã«æ°ããããŸããããªãã¡ã"è€æ°ãã£ãŒã«ã"ã®3 ã«ã©ã ã¯ã«ã©ã 3ã€ãšããŠæ°ããããŸãã
|
Prev
|
"è€æ°ãã£ãŒã«ã"ã«ã©ã ãæšæºã«ã©ã ãåºå¥ããã«ã¯ã sesam_query() ããã³ sesam_field_array() ãåç
§äžããã
|
Returns:
|
(PHP 3 CVS only)
|
A "result_id" resource is used by other functions to retrieve the query results.
|
è¿ãå€: æåæã«SESAM "çµæID" ãŸãã¯ãšã©ãŒæã« FALSE ã
|
It can execute both "immediate" SQL statements and "select type "queries.
|
"result_id"ãªãœãŒã¹ã¯ãã¯ãšãªçµæãååŸããéã«ä»ã®é¢æ°ã§äœ¿çšãã ãŸãã
|
SESAM_SEEK_NEXT) and the scrolling offset which can either be set once by sesam_seek_row() or each time when fetching a row using sesam_fetch_row().
|
"ã¹ã¯ããŒã«å"ã«ãŒãœã«ã䜿çšããŠããå Žåãã«ãŒãœã«ã¯çµæéåäžã èªç±ã«ç§»åå¯èœã§ããå"ã¹ã¯ããŒã«å"ã¯ãšãªã«é¢ããŠãã¹ã¯ããŒã«å ã®ã°ããŒãã«ããã©ã«ãå€( SESAM_SEEK_NEXT ã«åæ åãããŠããŸã)ãš sesam_seek_row() ã«ããäžåºŠ èšå®ãããã sesam_fetch_row() ã䜿çšããŠã¬ã³ãŒ ããååŸãã床ã«èšå®ããã¹ã¯ããŒã«ãªãã»ããããããŸãã
|
See also: sesam_fetch_row() and sesam_fetch_result().
|
"峿å"åœä»€ã®å Žåãäœçšãããã¬ã³ãŒãã®æ°ãä¿åãããŸãããã®æ° ã¯ã sesam_affected_rows() 颿°ã§ååŸå¯èœã§ãã
|
Show all rows of the "phone" table as a html table
|
sesam_fetch_row() ããã³ sesam_fetch_result() ãåç
§äžããã
|
sesam_num_fields
|
äŸ 1 "phone"ããŒãã«ã®å
šãŠã®ã¬ã³ãŒããHTMLããŒãã«ãšããŠè¡šç€º
|
Returns:
|
(PHP 3 CVS only)
|
sesam_rollback() discards any pending updates to the database.
|
è¿ãå€: æåæã« TRUE ããšã©ãŒæã« FALSE
|
At the end of each script, and as part of the sesam_disconnect() function, an implied sesam_rollback() is executed, discarding any pending changes to the database.
|
sesam_rollback() ã¯ãããŒã¿ããŒã¹ãžã®åŸ
æ©äžã® æŽæ°ãç Žæ£ããŸããçµæã«ãŒãœã«ãšçµæèšè¿°åã倿ŽãããŸãã
|
?php if (sesam_connect ("mycatalog", "myschema", "otto")) {if (sesam_execimm ("INSERT INTO mytable VALUES (*, 'Small Test', 0, 8, 15 )") sesam_execimm ("INSERT INTO othertable VALUES (*, 'Another Test', 1)")) sesam_commit(); else sesam_rollback();}?
|
ã¹ã¯ãªããã®çµäºæã«ã sesam_disconnect() 颿° ããæé»ã®ãã¡ã« sesam_rollback() ãå®è¡ããã ããŒã¿ããŒã¹ã®åŸ
æ©äžã®å
šãŠã®å€æŽã¯ç Žæ£ãããŸãã
|
Home
|
sesam_commit() ãåç
§äžããã
|
sesam_seek_row
|
äŸ 1SESAM ããŒã¿ããŒã¹ãžã®æŽæ°ãç Žæ£ãã
|
Prev
|
(PHP 3 CVS only)
|
result_id is a valid result id (select type queries only, and only if a "scrollable "cursor was requested when calling sesam_query()).
|
result_id ã¯æå¹ãªçµæIDã§ãã(select åã®ã¯ãšãªã§ããã€ã sesam_query() ãã³ãŒã« ããéã«"ã¹ã¯ããŒã«å¯èœãª"ã«ãŒãœã«ãèŠæ±ãããå Žåã®ã¿)
|
Table 1.
|
whence ã¯ããã®åŸã®"ã¹ã¯ããŒã«å"ã«ãŒãœã« ã®ååŸåŠçã§äœ¿çšãããã¹ã¯ããŒã«ã®åãæå®ããã¹ã¯ããŒã«åã®ã°ã㌠ãã«ãªããã©ã«ãå€ãèšå®ããæ¬¡ã®ãããªå®çŸ©æžã¿ã®å®æ°ãèšå®ããŸãã
|
After fetch, the default is set to SESAM_SEEK_ABSOLUTE, and the offset value is auto-incremented)
|
衚 1 "whence" ãã©ã¡ãŒã¿ã®æå¹ãªå€
|
offset is an optional parameter which is only evaluated (and required) if whence is either SESAM_SEEK_RELATIVE or SESAM_SEEK_ABSOLUTE.
|
offset ã¯ããªãã·ã§ã³ã®ãã©ã¡ãŒã¿ã§ããã whence ã SESAM_SEEK_RELATIVE ãŸã㯠SESAM_SEEK_ABSOLUTE ã®ã©ã¡ããã§ããå Žåã«ã®ã¿ è©äŸ¡ãããŸã(ãŸãå¿
èŠãšãããŸã)ã
|
Prev
|
(PHP 3 CVS only)
|
Returns:
|
è¿ãå€: settransaction() åŠçãæåããŠã æå¹ãªå Žåã« TRUE ããã®ä»ã®å Žåã« FALSE ã
|
sesam_settransaction() overrides the default values for the "isolation level "and "read-only" transaction parameters (which are set in the SESAM configuration file), in order to optimize subsequent queries and guarantee database consistency.
|
sesam_settransaction() ã¯ã(SESAMèšå®ãã¡ã€ã« ã§èšå®ããã)ãã©ã³ã¶ã¯ã·ã§ã³ãã©ã¡ãŒã¿ "isolation level" ãš "read-only" ã®ããã©ã«ãå€ãäžæžãããŸããããã¯ãé£ç¶ããã¯ãšãª ãæé©åããããŒã¿ããŒã¹ã®çµ±äžæ§ãä¿èšŒããããã§ããäžæžãããã å€ã¯ã次ã®ãã©ã³ã¶ã¯ã·ã§ã³ã§ã®ã¿äœ¿çšãããŸãã
|
sesam_settransaction() can only be called before starting a transaction, not after the transaction has been started already.
|
sesam_settransaction() ã¯ããã©ã³ã¶ã¯ã·ã§ã³ã éå§ããåã«ã®ã¿ã³ãŒã«ããããšãå¯èœã§ãæ¢ã«ãã©ã³ã¶ã¯ã·ã§ã³ãé å§ãããŠããå Žåã«ã¯ãã³ãŒã«ããããšãã§ããŸããã
|
Table 1.
|
PHPã¹ã¯ãªããã®äœ¿çšãç°¡åã«ããã«ã¯ã次ã®å®æ°ããPHPã§å®çŸ©ãã㊠ããŸãã(æå³ã®è©³çްã«ã€ããŠã¯SESAMãã³ãããã¯ãåç
§)
|
Value
|
衚 1 "Isolation_Level" ãã©ã¡ãŒã¿ã®æå¹ãªå€
|
Valid values for "Read_Only" parameter
|
衚 2 "Read_Only" ãã©ã¡ãŒã¿ã®æå¹ãªå€
|
Example 1.
|
sesam_settransaction() ã«ããèšå®ãããå€ã¯ã SESAM èšå®ãã¡ã€ã« ã§ æå®ãããããã©ã«ãèšå®ãäžæžãããŸãã
|
?php sesam_settransaction (SESAM_TXISOL_REPEATABLE_READ, SESAM_TXREAD_READONLY);?
|
äŸ 1SESAM ãã©ã³ã¶ã¯ã·ã§ã³ãã©ã¡ãŒã¿ãèšå®ãã
|
(PHP 4 = 4.2.0)
|
(PHP 4 = 4.2.0)
|
If new_cache_expire is given, the current cache expire is replaced with new_cache_expire.
|
session_cache_expire() ã¯ãã«ã¬ã³ãã®ãã£ãã·ã¥ ã®æå¹æéãè¿ããŸãã new_cache_expire ãæ å®ãããå Žåãã«ã¬ã³ãã®ãã£ãã·ã¥ã®æå¹æéã¯ã new_cache_expire ã§çœ®æãããŸãã
|
If cache_limiter is specified, the name of the current cache limiter is changed to the new value.
|
(PHP 4 = 4.0.3)
|
These headers determine the rules by which the page content may be cached by the client and intermediate proxies.
|
session_cache_limiter() ã¯ãã«ã¬ã³ãã®ãã£ãã·ã¥ ãªããã¿ã®ååãè¿ããŸãã cache_limiter ã æå®ãããå Žåãã«ã¬ã³ãã®ãã£ãã·ã¥ãªããã¿ã¯æ°ããå€ã«å€æŽãã ãŸãã
|
In private mode, the Expire header sent to the client may cause confusion for some browsers, including Mozilla.
|
ãã£ãã·ã¥ãªããã¿ã¯ãã¯ã©ã€ã¢ã³ãã«éä¿¡ããããã£ãã·ã¥å¶åŸ¡çšã® HTTPããããå¶åŸ¡ããŸãããããã®ãããã¯ããºãŒãã®å
容ããã£ãã·ã¥ ããèŠåãå®çŸ©ããŸããäŸãã°ããã£ãã·ã¥ãªããã¿ã nocache ã«èšå®ããå Žåãã¯ã©ã€ã¢ã³ãåŽã®ãã£ã ã·ã¥ã¯ç¡å¹ã«ãªããŸãããããã public ã®å Žåã¯ã ãã£ãã·ã¥ãèš±å¯ããŸãã private ãšèšå®ããããš ãå¯èœã§ããã®å Žåã public ãããããå¶éãå³ã ããªããŸãã
|
The cache limiter is reset to the default value stored in session.cache_limiter at request startup time.
|
private ã¢ãŒãã«ãããŠãExpireããããã¯ã©ã€ã¢ ã³ãã«éä¿¡ãããŸããããã¯ãMozillaã®ãããªããã€ãã®ãã©ãŠã¶ãæ·· ä¹±ãããŸãããããé¿ããã«ã¯ã private_no_expire ã¢ãŒãã䜿çšããŠäžããã ãã®ã¢ãŒãã§ã¯ãExpireãããã¯ã¯ã©ã€ã¢ã³ãã«éä¿¡ãããŸããã
|
Example 1. session_cache_limiter() example
|
泚æ private_no_expire ã¯ãPHP 4.2.0devã§è¿œå ãã㟠ããã
|
Also see the session.cache_limiter configuration directive.
|
ãã£ãã·ã¥ãªããã¿ã¯ããªã¯ãšã¹ãéå§æã« session.cache_limiter ã«ä¿åãããããã©ã«ãå€ ã«ãªã»ãããããŸããã€ãŸããåãªã¯ãšã¹ãæ¯ã«(ã¢ãŠãããããããã¡ãŒ ãç¡å¹ãªå Žåã¯ã session_start() ãã³ãŒã«ããã åã«) session_cache_limiter() ãã³ãŒã«ããå¿
èŠ ããããŸãã
|
session_cache_expire
|
äŸ 1 session_cache_limiter() ã®äŸ
|
(PHP 4)
|
(PHP 4)
|
Voir aussi session_encode()
|
session_decode() ã¯ã data ã®ã»ãã·ã§ã³ããŒã¿ããã³ãŒããã ã»ãã·ã§ã³ã«ä¿åãã倿°ãèšå®ããŸãã
|
session_destroy() destroys all of the data associated with the current session.
|
(PHP 4)
|
This function returns TRUE on success and FALSE on failure to destroy the session data.
|
session_destroy() ã¯ãçŸåšã®ã»ãã·ã§ã³ã« é¢é£ã¥ããããå
šãŠã®ããŒã¿ãç Žæ£ããŸãããã®é¢æ°ã¯ã ã»ãã·ã§ã³ã«é¢ããã°ããŒãã«å€æ°ãç Žæ£ããŸããããŸããã»ãã·ã§ã³ ã¯ãããŒãç Žæ£ããŸããã
|
?php / / Initialize the session. / / If you are using session_name( "something"), don't forget it now! session_start(); / / Unset all of the session variables. session_unset(); / / Finally, destroy the session. session_destroy();?
|
ãã®é¢æ°ã¯ã»ãã·ã§ã³ããŒã¿ã®ç Žæ£ã«æåããå Žåã« TRUE ã倱æãã å Žåã« FALSE ãè¿ããŸãã
|
Destroying a session with $_SESSION
|
äŸ 1ã»ãã·ã§ã³ãç Žæ£ãã
|
session_decode
|
äŸ 2$_SESSIONã§ã»ãã·ã§ã³ãç Žæ£ãã
|
(PHP 4)
|
(PHP 4)
|
See also session_decode()
|
session_encode() ã¯ãçŸåšã®ã»ãã·ã§ã³ã®å
容ã ãšã³ã³ãŒãããæååãè¿ããŸãïŒ
|
Prev
|
(PHP 4)
|
The session_get_cookie_params() function returns an array with the current session cookie information, the array contains the following items:
|
颿° session_get_cookie_params() ã¯ãã«ã¬ã³ãã® ã»ãã·ã§ã³ã¯ãããŒã®æ
å ±ãé
åãšããŠè¿ããŸãã ãã®é
åã«ã¯æ¬¡ã®ãããªé
ç®ãå«ãŸããŠããŸãã
|
"lifetime" - The lifetime of the cookie.
|
"lifetime" - ã¯ãããŒã®çåæé(lifetime)
|
"domain" - The domain of the cookie.
|
"path" - æ
å ±ãä¿åãããŠããå Žæã®ãã¹
|
"secure" - The cookie should only be sent over secure connections. (This item was added in PHP 4.0.4.)
|
"domain" - ã¯ãããŒã®ãã¡ã€ã³
|
Prev
|
"secure" - ã¯ãããŒã¯ã»ãã¥ã¢ãªæ¥ç¶ã§ã®ã¿éä¿¡ãããŸãã (ãã®é
ç®ã¯ãPHP 4.0.4ã§è¿œå ãããŸãã)
|
session_id() returns the session id for the current session.
|
(PHP 4)
|
Depending on the session handler, not all characters are allowed within the session id.
|
session_id() ã¯ãã«ã¬ã³ãã®ã»ãã·ã§ã³ã®ã»ãã·ã§ ã³IDãè¿ããŸãã id ãæå®ãããå Žåãã«ã¬ã³ ãã®ã»ãã·ã§ã³IDã眮æããŸãã
|
The constant SID can also be used to retrieve the current name and session id as a string suitable for adding to URLs.
|
ã«ã¬ã³ãã®ååãšã»ãã·ã§ã³IDããURLã«è¿œå å¯èœãªæååãšããŠååŸã ãããã«å®æ° SID ã䜿çšããããšãå¯èœã§ãã
|
Prev
|
(PHP 4)
|
session_is_registered() returns TRUE if there is a global variable with the name name registered in the current session.
|
session_is_registered() ã¯ã name ãšããååã®å€æ°ãã«ã¬ã³ãã®ã»ãã·ã§ã³ ã«ç»é²ãããŠããå Žåã« TRUE ãè¿ããŸãã
|
Caution
|
泚æ $_SESSION(ãŸãã¯PHP 4.0.6以åã®å Žåã¯$HTTP_SESSION_VARS)ã䜿çšã ããŠããå Žåããã倿°ã$_SESSIONã«ç»é²ãããŠãããã確èªããã ãã« isset() ã䜿çšããŠäžããã
|
Prev
|
$HTTP_SESSION_VARS/$_SESSIONã䜿çšããŠããå Žåã session_register(), session_is_registered(), session_unregister() ã䜿çšããªãã§äžããã
|
(PHP 4)
|
(PHP 4)
|
If module is specified, that module will be used instead.
|
session_module_name() ã¯ãçŸåšã®ã»ãã·ã§ã³ã¢ãžã¥ãŒ ã«ã®ååãè¿ããŸãã module ãæå®ãããå Ž åããã®ã¢ãžã¥ãŒã«ãå€ããã«äœ¿çšãããŸãã
|
The session name references the session id in cookies and URLs.
|
(PHP 4)
|
The session name is reset to the default value stored in session.name at request startup time.
|
session_name() ã¯ãã«ã¬ã³ãã®ã»ãã·ã§ã³åãè¿ ããŸãã name ãæå®ããå Žåãã«ã¬ã³ãã®ã»ã ã·ã§ã³åã¯ããã®å€ã«å€æŽãããŸãã
|
Prev
|
äŸ 1 session_name() ã®äŸ
|
(no version information, might be only in CVS)
|
(no version information, might be only in CVS)
|
Changing session data is not possible, but frameset performance will be improved.
|
Read in session data without locking the session data. Changing session data is not possible, but frameset performance will be improved.
|
(PHP 4)
|
(PHP 4)
|
For each name, session_register() registers the global variable with that name in the current session.
|
session_register() ã®åŒæ°ã®æ°ã¯å¯å€ã§ããã ååŒæ°ã¯å€æ°åãä¿æããæååãŸãã¯å€æ°åãããªãé
å ãšããããšãå¯èœã§ãã å倿°åãåŠçãããæ¯ã«ã session_register() ã¯ããã®å€æ°åã®ã°ããŒãã«å€æ°ãçŸåšã®ã»ãã·ã§ã³ã«ç»é²ããŸãã
|
All $_SESSION entries are automatically registered.
|
ãã®é¢æ°ã¯ã global 倿°ãç»é²ããŸããã»ãã·ã§ ã³å€æ°ã颿°ã®å
éšã§ç»é²ãããå Žåã global() ãçšããŠãã®å€æ°ãã°ããŒãã«ãšããããäžèšã®ããã«sessioné
åã 䜿çšããŠäžããã
|
Caution
|
$HTTP_SESSION_VARS/$_SESSIONã䜿çšããå Žåã session_register(), session_is_registered(), session_unregister() ã䜿çšããªãã§äžããã
|
If you want to register a session variable from within a function, you need to make sure to make it global using the global keyword or the $GLOBALS[] array, or use the special session arrays as noted below.
|
ãã®é¢æ°ã¯å
šãŠã®å€æ°ã®ã»ãã·ã§ã³ãžã®ç»é²ã«æåããå Žåã« TRUE ã è¿ããŸãã
|
If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered() and session_unregister().
|
ãã®é¢æ°ãã³ãŒã«ããåã« session_start() ãã³ãŒ ã«ããŠããªãå Žåãæé»ã®ãã¡ã«åŒæ°ãä»ããã« session_start() ãã³ãŒã«ãããŸãã
|
If session_start() was not called before this function is called, an implicit call to session_start() with no parameters will be made. $_SESSION does not mimick this behavior and requires session_start() before use.
|
é
å$HTTP_SESSION_VARSãŸãã¯$_SESSION (PHP = 4.1.0)ã®é©åœãªã¡ã³ ãã«èšå®ãããã ãã§ãã»ãã·ã§ã³å€æ°ãäœæããããšãå¯èœã§ãã
|
$barney = "A big purple dinosaur ."; session_register("barney"); $_SESSION["zim"] = "An invader from another planet ."; # The old way was to use $HTTP_SESSION_VARS $HTTP_SESSION_VARS["spongebob"] = "He's got square pants .";
|
泚æ ã»ãã·ã§ã³ã«ãªãœãŒã¹å€æ°ãç»é²ããããšã¯çŸåšã§ããŸãããäŸãã°ã ããŒã¿ããŒã¹ãžã®æ¥ç¶ãçæããæ¥ç¶IDãã»ãã·ã§ã³å€æ°ãšããŠç»é²ãã ã»ãã·ã§ã³ãå埩ãããæç¹ã§ãæ¥ç¶ãæå¹ã§ããããšãæåŸ
ããããš ã¯ã§ããŸããããªãœãŒã¹ãè¿ãPHP颿°ã¯ããã®é¢æ°å®çŸ©ã« resource åã®è¿ãå€ãæããããšã瀺ãããŠããã ãªãœãŒã¹ãè¿ã颿°ã®ãªã¹ãã¯ãä»é² resource types ã§èŠãããšãã§ã㟠ãã
|
PHP functions that return a resource are identified by having a return type of resource in their function definition.
|
$_SESSION (ãŸãã¯PHP 4.0.6以åã¯$HTTP_SESSION_VARS)ã䜿çšãã㊠ããå Žåã$_SESSIONã«å€æ°ã代å
¥ããŠäžããã ããªãã¡ã$_SESSION['var'] = 'ABC';
|
If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, assign values to $_SESSION.
|
session_is_registered() ããã³ session_unregister() ãåç
§äžããã
|
(PHP 4)
|
(PHP 4)
|
If path is specified, the path to which data is saved will be changed. session_save_path() needs to be called before session_start() for that purpose.
|
session_save_path() ã¯ãçŸåšã®ã»ãã·ã§ã³ããŒã¿ ä¿åãã¹ãè¿ããŸãã path ãæå®ãããå Žåã ããŒã¿ãä¿åãããã¹ã倿ŽãããŸãã
|
For example, on Linux, reiserfs may provide better performance than ext2fs.
|
泚æ ããã€ãã®ãªãã¬ãŒã·ã§ã³ã·ã¹ãã ã§ã¯ãå€ãã®å°ããªãã¡ã€ã«ãå¹ççã« åŠçãããã¡ã€ã«ã·ã¹ãã äžã«ãã¹ãæå®ããããšãæãŸããã§ãã äŸãã°ãLinux ã§ã¯ ext2fs ããã reiserfs ã®æ¹ãæ§èœé¢ã§ãã åªããŠããŸãã
|
The effect of this function only lasts for the duration of the script.
|
(PHP 4)
|
See also the configuration directives session.cookie_lifetime, session.cookie_path, session.cookie_domain, session.cookie_secure, and session_get_cookie_params().
|
ãã¡ã€ã«php.iniã§å®çŸ©ãããã¯ãããŒãã©ã¡ãŒã¿ãèšå®ããŸãã ãã®é¢æ°ã®å¹æãæç¶ããã®ã¯ãã¹ã¯ãªããã®å®è¡ãçµäºãããŸã§ã§ãã
|
(PHP 4)
|
(PHP 4)
|
This is most useful when a storage method other than those supplied by PHP sessions is preferred. i.e.
|
session_set_save_handler() ã¯ãã»ãã·ã§ã³ã«é¢ é£ããããŒã¿ãä¿åããã³ååŸããããã«äœ¿çšããããŠãŒã¶å®çŸ©ã®ã»ã ã·ã§ã³ä¿å颿°ãèšå®ããŸãããã®é¢æ°ã¯ãã»ãã·ã§ã³ããŒã¿ãããŒã« ã«ããŒã¿ããŒã¹ã«ä¿åããå Žåã®ããã«PHPã»ãã·ã§ã³ã«ããæäŸããã ãã®ä»¥å€ã®ä¿åæ¹æ³ã䜿çšãããå Žåã«æçšã§ãã
|
If debugging output is necessary, it is suggested that the debug output be written to a file instead.
|
泚æ session_set_save_handler() ã®èšå®ãæå¹ã«ãã ã«ã¯ãphp.ini ãã¡ã€ã«ã® session.save_handler ã« user ãèšå®ããå¿
èŠããããŸãã
|
This differs to the default file-based session save handler, which creates empty session files.
|
泚æ "write" ãã³ãã©ã¯ãåºåã¹ããªãŒã ãã¯ããŒãºããããŸã§ã¯å®è¡ãã ãŸãããã€ãŸãã"write"ãã³ãã©ã«ããããããã°çšåºåã¯ãã©ãŠã¶ åŽã§ã¯èŠãããšãã§ããŸããããããã°çšã®åºåãå¿
èŠãªå Žåã¯ã代ã ãã«ãããã°åºåããã¡ã€ã«ã«æžã蟌ãããšãæšå¥šããŸãã
|
This example could easily be extended to cover database storage using your favorite PHP supported database engine.
|
以äžã®äŸã§ã¯ãããã©ã«ãã®ä¿å files ã«äŒŒã ãã¡ã€ã«ããŒã¹ã®ã»ãã·ã§ã³ä¿åãè¡ããŸãããã®äŸã¯ãPHPããµããŒã ããä»»æã®ããŒã¿ããŒã¹ãšã³ãžã³ãçšããŠããŒã¿ããŒã¹ãžã®ä¿åãè¡ã ããã«å®¹æã«æ¡åŒµå¯èœã§ãã
|
Return empty string if there is no data to read.
|
saveãã³ãã©ãæåŸ
éãã«åäœããããã«read颿°ã¯åžžã«æååãè¿ã å¿
èŠããããŸããããŒã¿ããªãå Žåã«ã¯ãç©ºã®æååãè¿ããŠäžããã ä»ã®ãã³ãã©ããã®è¿ãå€ã¯ãè«çåŒãããªãã¡ãæåæã« TRUE ã倱 æããå Žåã« FALSE ãè¿ããŸãã
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.