« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 6 of about 6 for filepath (0.001 sec.)
ファイルシステムのセキュリティ | PHP 8.3 11442
ファイルシステムのセキュリティ 目次 Null バイト関連の問題 PHP には、多くのサーバーシステムに組み込まれている、 ファイル単位・ディレクトリ単位の権限によるセキュリティが適用されます。これにより、ファイ ルシステム内のファイルを読み込み可能に制 ... ' ]; // 認証機構を使用する $userfile = basename ( $_POST [ 'user_submitted_filename' ]); $homedir = "/home/ $username " ; $filepath = " $homedir / $userfile " ; if ( file_exists ( $filepath ) && unlink ( $filepath )) { $logstring = " $filepath を削除しま ... した\n" ; } else { $logstring = " $filepath の削除に失敗しました\n" ; } $fp = fopen ( "/home/logging/filedelete.log" , "a" ); fwrite ( $fp , $logstring ); fclose ( $f ... 'REMOTE_USER' ]; // 認証機構を使用する $userfile = $_POST [ 'user_submitted_filename' ]; $homedir = "/home/ $username " ; $filepath = " $homedir / $userfile " ; if (! ctype_alnum ( $username ) || ! preg_match ( '/^(?:[a-z0-9_-]|\.(?!\.))+$/iD' , $userfil ...
https://man.mtool.work/php/8.3/security.filesystem.html
RarEntry::extract — アーカイブのエントリを展開する | PHP 8.3 11296
RarEntry::extract (PECL rar >= 0.1) RarEntry::extract — アーカイブのエントリを展開する 説明 public function RarEntry::extract ( string $dir , string $filepath = "" , string $password = NULL , bool $extended_data = false ): bool RarEntry::ex ... 成します。 詳細は以下を参照ください。 パラメータ dir ファイルを展開するディレクトリへのパス。 このパラメータが考慮されるのは filepath が指定されていないときだけです。両方のパラメータが空の場合は、 カレントディレクトリへの展開を試みます。 filepath 取り出すフ ... ーカイブ内のすべてのファイルを展開する方法 <?php /* erix こと Erik Jenssen によるサンプルです */ $filename = "foobar.rar" ; $filepath = "/home/foo/bar/" ; $rar_file = rar_open ( $filepath . $filename ); $list = rar_list ( $rar_file ); foreach( $list as $fi ...
https://man.mtool.work/php/8.3/rarentry.extract.html
ZipArchive::addFile — 指定したパスからファイルを ZIP アーカイブに追加する | PHP... 9505
ZipArchive::addFile (PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.1.0) ZipArchive::addFile — 指定したパスからファイルを ZIP アーカイブに追加する 説明 public function ZipArchive::addFile ( string $filepath , string $entryname = "" , int $star ... ポータビリティを考慮して、ZIP ファイル名のディレクトリ区切り文字には常にスラッシュ ( / ) を使うことを推奨します。 パラメータ filepath 追加するファイルへのパス。 entryname 空でない値を指定した場合は ZIP アーカイブ内部での名前となり、 filepath を上書きします ...
https://man.mtool.work/php/8.3/ziparchive.addfile.html
ZipArchive::replaceFile — 指定されたパスのファイルにアーカイブの一部を置き換え... 8609
ZipArchive::replaceFile (PHP >= 8.0.0, PECL zip >= 1.18.0) ZipArchive::replaceFile — 指定されたパスのファイルにアーカイブの一部を置き換える 説明 public function ZipArchive::replaceFile ( string $filepath , int $index , int $start = 0 , int ... ポータビリティを考慮して、ZIP ファイル名のディレクトリ区切り文字には常にスラッシュ ( / ) を使うことを推奨します。 パラメータ filepath 追加するファイルのパス。 index 置き換えるファイルのインデックス。名前は変更されません。 start ファイルを一部コピーする場合 ...
https://man.mtool.work/php/8.3/ziparchive.replacefile.html
ZipArchive クラス | PHP 8.3 7256
ZipArchive クラス (PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.1.0) はじめに Zip で圧縮されたファイルアーカイブです。 クラス概要 class ZipArchive implements Countable { /* 定数 */ public const int CREATE ; public const int EXCL ; public con ... ; /* メソッド */ public function addEmptyDir ( string $dirname , int $flags = 0 ): bool public function addFile ( string $filepath , string $entryname = "" , int $start = 0 , int $length = ZipArchive::LENGTH_TO_END , int $flags = ZipArchive::FL_OVERWRIT ... ew_name ): bool public function renameName ( string $name , string $new_name ): bool public function replaceFile ( string $filepath , int $index , int $start = 0 , int $length = ZipArchive::LENGTH_TO_END , int $flags = 0 ): bool public function setArchiv ...
https://man.mtool.work/php/8.3/class.ziparchive.html
The RarEntry class | PHP 8.3 6671
The RarEntry class (PECL rar >= 0.1) はじめに A RAR entry, representing a directory or a compressed file inside a RAR archive. クラス概要 final class RarEntry { /* 定数 */ const int HOST_MSDOS = 0 ; const int HOST_OS2 = 1 ; const int HOST_W ... YM_LINK = 40960 ; const int ATTRIBUTE_UNIX_SOCKET = 49152 ; /* メソッド */ public function extract ( string $dir , string $filepath = "" , string $password = NULL , bool $extended_data = false ): bool public function getAttr (): int public function getCr ...
https://man.mtool.work/php/8.3/class.rarentry.html
PREV 1 NEXT