« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for detectUserAgent (0.000 sec.)
例 | PHP 8.3 9414
例 rar:// ラッパー の例も参照ください。 例1 オンザフライでの復元 <?php if (! array_key_exists ( "i" , $_GET ) || ! is_numeric ( $_GET [ "i" ])) die( "Index unspecified or non-numeric" ); $index = (int) $_GET [ "i" ]; $arch = RarArchive :: o ... open file with index $index insided the archive." ); $arch -> close (); //no longer needed; stream is independent function detectUserAgent () { if (! array_key_exists ( 'HTTP_USER_AGENT' , $_SERVER )) return "Other" ; $uas = $_SERVER [ 'HTTP_USER_AGENT' ]; if ( ... Disposition: attachment; filename*=UTF-8\'\'%s' ; $formatDef = 'Content-Disposition: attachment; filename="%s"' ; switch ( detectUserAgent ()) { case "Opera" : case "Firefox" : $orfilename = rawurlencode ( $orfilename ); $format = $formatRFC2231 ; break; case " ...
https://man.mtool.work/php/8.3/rar.examples.html
PREV 1 NEXT