Results of 1 - 10 of about 79 for home (0.002 sec.)
- Null バイト関連の問題 | PHP 8.3 11703
- Null バイト関連の問題 PHP はファイルシステム関連の操作に C 言語の関数を使用しているので、 null バイトの処理を予期せぬかたちで行うことがあります。 C 言語では null バイトは文字列の終端を表すので、 null バイトを含む文字列があった場合に null バ
... して脆弱なスクリプト <?php $file = $_GET [ 'file' ]; // ここで "../../etc/passwd\0" が渡されたとします if ( file_exists ( '/home/wwwrun/' . $file . '.php' )) { // file_exists は true を返します。これは、ファイル /home/wwwrun/../../etc/passwd が存在する ... からです include '/home/wwwrun/' . $file . '.php' ; // ファイル /etc/passwd がインクルードされてしまいます } ?> したがって、ファイルシステム操作で ... して与えられる可能性のある、有効な値の一覧を作成します switch ( $file ) { case 'main' : case 'foo' : case 'bar' : include '/home/wwwrun/include/' . $file . '.php' ; break; default: include '/home/wwwrun/include/main.php' ; } ?> 他のマニュアルの関連ペー ...
-
https://man.mtool.work/php/8.3/security.filesystem.nullbytes.html
- ファイルシステムのセキュリティ | PHP 8.3 11552
- ファイルシステムのセキュリティ 目次 Null バイト関連の問題 PHP には、多くのサーバーシステムに組み込まれている、 ファイル単位・ディレクトリ単位の権限によるセキュリティが適用されます。これにより、ファイ ルシステム内のファイルを読み込み可能に制
... トリからファイルを削除する $username = $_POST [ 'user_submitted_name' ]; $userfile = $_POST [ 'user_submitted_filename' ]; $homedir = "/home/ $username " ; unlink ( " $homedir / $userfile " ); echo "ファイルは削除されました!" ; ?> username および file ... 、 $username = $_POST [ 'user_submitted_name' ]; // "../etc" $userfile = $_POST [ 'user_submitted_filename' ]; // "passwd" $homedir = "/home/ $username " ; // "/home/../etc" unlink ( " $homedir / $userfile " ); // "/home/../etc/passwd" echo "ファイルは ... sername = $_SERVER [ 'REMOTE_USER' ]; // 認証機構を使用する $userfile = basename ( $_POST [ 'user_submitted_filename' ]); $homedir = "/home/ $username " ; $filepath = " $homedir / $userfile " ; if ( file_exists ( $filepath ) && unlink ( $filepath )) ...
-
https://man.mtool.work/php/8.3/security.filesystem.html
- gnupg_getengineinfo — 暗号化エンジンの情報を返す | PHP 8.3 11414
- gnupg_getengineinfo (PECL gnupg >= 1.5) gnupg_getengineinfo — 暗号化エンジンの情報を返す 説明 function gnupg_getengineinfo ( resource $identifier ): array パラメータ identifier gnupg_init() あるいは gnupg のコールで得られた gnupg ID。 戻り値
... 暗号化エンジンの情報を配列で返します。 これは、 protocol , file_name , home_dir からなります。 例 例1 手続き型 gnupg_getengineinfo() の例 <?php $res = gnupg_init (); print_r ( gnupg_getengineinfo ( ... $res )); ?> 上の例の出力は以下となります。 array(3) { ["protocol"]=> int(0) ["file_name"]=> string(12) "/usr/bin/gpg" ["home_dir"]=> string(0) "" } 例2 オブジェクト指向 gnupg_getengineinfo() の例 <?php $gpg = new gnupg ([ "file_name" => "/usr/bin/ ... gpg2" , "home_dir" => "/var/www/.gnupg" ]); print_r ( $gpg -> getengineinfo ()); ?> 上の例の出力は以下となります。 array(3) { ["protocol ...
-
https://man.mtool.work/php/8.3/function.gnupg-getengineinfo.html
- インストール手順 | PHP 8.3 10398
- インストール手順 OCI8 とともに PHP を構成する OCI8 を構成する前に前述の 要件 節に 目を通してください。 Web サーバーを開始する前に、一般的に OCI8 はいくつかの Oracle 環境変数(下記参照)が必要です。 それらはライブラリの場所を指定したり、構成
... :80/ 以下を実行します。 pecl install oci8 PHP 7 以降では、 pecl install oci8-2.2.0 とします。 プロンプトが出たら、 $ORACLE_HOME または、 instantclient,/path/to/instant/client/lib を入力して下さい。 注意: $ORACLE_HOME という値を入力しないで下さい。 pe ... cl はそれを展開しないからです。 代わりに、展開済みのパスを入力するようにして下さい。 たとえば、 /opt/oracle/product/19c/dbhome_1 や instantclient,/Users/myname/Downloads/instantclient_19_8 のようなものです。 oci8_dtrace_gen.h: No such file or direct ... をダウンロードします。 パッケージを展開します: tar -zxf oci8-3.0.0.tgz cd oci8-3.0.0 パッケージを準備します: phpize $ORACLE_HOME または Instant Client を使ってパッケージを設定します。 ./configure -with-oci8=shared,$ORACLE_HOME または ./configure -with ...
-
https://man.mtool.work/php/8.3/oci8.installation.html
- 名前空間の概要 | PHP 8.3 8969
- 名前空間の概要 (PHP 5 >= 5.3.0, PHP 7, PHP 8) 名前空間とは何でしょう? 広義の「名前空間」とは、項目をカプセル化するもののことです。 これは多くの場面で見られる抽象概念です。 たとえば、たいていの OS はディレクトリでファイルをグループ化します。
... この場合、ディレクトリがその中のファイルの名前空間として機能しています。 具体的に言うと、 foo.txt というファイルは /home/greg と /home/other の両方に存在することが可能ですが、それらふたつの foo.txt を同じディレクトリに配置することはできません。 ... さらに、 /home/greg ディレクトリの外から foo.txt にアクセスするには、ディレクトリ名をファイル名の前につけて /home/greg/foo.txt としなけれ ...
-
https://man.mtool.work/php/8.3/language.namespaces.rationale.html
- gnupg_init — 接続を初期化する | PHP 8.3 8818
- gnupg_init (PECL gnupg >= 0.4) gnupg_init — 接続を初期化する 説明 function gnupg_init ( ? array $options = null ): resource パラメータ options 連想配列でなければいけません。 暗号化エンジンのデフォルト設定を変更するために使います。 設定の上書
... プション キー 型 説明 file_name string このプロトコルを実装した、実行可能なプログラムのファイル名。 通常は gpg のパスです。 home_dir string 設定ディレクトリのディレクトリ名です。 この値は、同じ目的で使う環境変数 GNUPGHOME も上書きします。 戻り値 GnuPG ... とホームディレクトリを上書きした、手続き型の gnupg_init() の例 <?php $res = gnupg_init ([ "file_name" => "/usr/bin/gpg2" , "home_dir" => "/var/www/.gnupg" ]); ?> 例3 デフォルト値を使い、オブジェクト指向型のインターフェイスで gnupg を初期化する例 <?php ... し、オブジェクト指向型のインターフェイスで gnupg を初期化する例 <?php $gpg = new gnupg ([ "file_name" => "/usr/bin/gpg2" , "home_dir" => "/var/www/.gnupg" ]); ?> 他のマニュアルの関連ページ Linux JM sem_init(3) Linux JM pthread_condattr_destroy(3) Linu ...
-
https://man.mtool.work/php/8.3/function.gnupg-init.html
- ssh2:// — Secure Shell 2 | PHP 8.3 8818
- ssh2:// ssh2:// — Secure Shell 2 説明 ssh2.shell:// ssh2.exec:// ssh2.tunnel:// ssh2.sftp:// ssh2.scp:// (PECL) 注意 : このラッパーはデフォルトでは有効になっていません ssh2.*:// ラッパーを使用するには、 » PECL から » SSH2 拡張モジュールを
... リームをオープンする <?php $session = ssh2_connect ( 'example.com' , 22 ); ssh2_auth_pubkey_file ( $session , 'username' , '/home/username/.ssh/id_rsa.pub' , '/home/username/.ssh/id_rsa' , 'secret' ); $stream = fopen ( "ssh2.tunnel:// $session /remote. ... 通りには動きません。 <?php $session = ssh2_connect ( 'example.com' , 22 ); ssh2_auth_pubkey_file ( $session , 'username' , '/home/username/.ssh/id_rsa.pub' , '/home/username/.ssh/id_rsa' , 'secret' ); $connection_string = "ssh2.sftp:// $session /" ; un ...
-
https://man.mtool.work/php/8.3/wrappers.ssh2.html
- IntlCalendar::isLenient — 日付と時刻の解釈を「緩いモード」で行うかを取得する | ... 8681
- IntlCalendar::isLenient (PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1) IntlCalendar::isLenient — 日付と時刻の解釈を「緩いモード」で行うかを取得する 説明 オブジェクト指向型 public function IntlCalendar::isLenient (): bool 手続き型 function
... or: Uncaught exception 'IntlException' with message 'datefmt_format_object: error obtaining instant from IntlCalendar' in /home/foobar/example.php:16 Stack trace: #0 /home/foobar/example.php(16): IntlDateFormatter::formatObject(Object(IntlGregorianCa ... lendar)) #1 {main} thrown in /home/foobar/example.php on line 16 他のマニュアルの関連ページ Python calendar ...
-
https://man.mtool.work/php/8.3/intlcalendar.islenient.html
- DOMDocument::xinclude — DOMDocument オブジェクト内の XIncludes を置換する | PHP... 8241
- DOMDocument::xinclude (PHP 5, PHP 7, PHP 8) DOMDocument::xinclude — DOMDocument オブジェクト内の XIncludes を置換する 説明 public function DOMDocument::xinclude ( int $options = 0 ): int | false このメソッドは、DOMDocument オブジェクト内の
... 1.0"?> <chapter xmlns:xi="http://www.w3.org/2001/XInclude"> <title>Books of the other guy..</title> <para> <row xml:base="/home/didou/book.xml"> <entry>The Grapes of Wrath</entry> <entry>John Steinbeck</entry> <entry>en</entry> <entry>0140186409</ent ... ry> </row> <row xml:base="/home/didou/book.xml"> <entry>The Pearl</entry> <entry>John Steinbeck</entry> <entry>en</entry> <entry>014017737X</entry> </row> ... <row xml:base="/home/didou/book.xml"> <entry>Samarcande</entry> <entry>Amine Maalouf</entry> <entry>fr</entry> <entry>2253051209</entry> </row> ...
-
https://man.mtool.work/php/8.3/domdocument.xinclude.html
- eio_realpath — 正規化された絶対パスを取得する | PHP 8.3 8241
- eio_realpath (PECL eio >= 0.0.1dev) eio_realpath — 正規化された絶対パスを取得する 説明 function eio_realpath ( string $path , int $pri , callable $callback , string $data = NULL ): resource eio_realpath() は、正規化された絶対パスを callback
... PRI_DEFAULT , "my_realpath_callback" ); eio_event_loop (); ?> 上の例の出力は、 たとえば以下のようになります。 string(12) "/home/ruslan" string(5) "/home" 他のマニュアルの関連ページ Linux JM realpath(3) Linux JM realpath(1) Linux JM canonicalize_file_ ...
-
https://man.mtool.work/php/8.3/function.eio-realpath.html