(PHP 4, PHP 5, PHP 7, PHP 8)
posix_getsid — プロセスの現在の sid を得る
プロセス process_id
のセッション ID を返します。
プロセスのセッション ID とは、セッションリーダーのプロセスグループ ID のことです。
process_id
プロセス ID。0 を指定すると、現在のプロセスとみなされます。
不正な process_id
を指定すると、
false
が返され、
posix_get_last_error() でチェックできるエラー情報が設定されます。
ID を表す整数値を返します。
失敗した場合に false
を返します
例1 posix_getsid() の使用例
<?php
$pid = posix_getpid();
echo posix_getsid($pid); /8805
?>
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant