タグ

ブックマーク / www.php.net (44)

  • PHP: PHP 8.0.0 Release Announcement

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    PHP: PHP 8.0.0 Release Announcement
    ockeghem
    ockeghem 2020/11/27
    おめ。今日は忙しかったので、これからビルドする
  • PHP: compact - Manual

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    ockeghem
    ockeghem 2018/06/11
    PHPインターナルのメーリングリストでcompact関数の改善提案があったのだけど、compact関数ってなんだと思い調べたら、なんともPHPらしい変t…
  • PHP 5.4.43 Released - PHP: News Archive - 2015

    The PHP development team announces the immediate availability of PHP 7.0.1. Several bugs have been fixed. All PHP 7.0 users are encouraged to upgrade to this version. For source downloads of PHP 7.0.1 please visit our downloads page, Windows source and binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog. The team at php[architect] is excited to anno

    ockeghem
    ockeghem 2015/07/10
    『Please note that PHP 5.4 branch is nearing the end of its support timeframe』PHP5.4のサポート終了が近づいてますよ
  • PHP: 新機能 - Manual

    定数式 数値や文字列リテラルと定数を、これまでのバージョンでは静的な値が想定されていた場面 (定数やプロパティの宣言、関数のデフォルト引数など) で、スカラー式として扱えるようになりました。 <?php const ONE = 1; const TWO = ONE * 2; class C { const THREE = TWO + 1; const ONE_THIRD = ONE / self::THREE; const SENTENCE = 'THREE の値は '.self::THREE; public function f($a = ONE + self::THREE) { return $a; } } echo (new C)->f()."\n"; echo C::SENTENCE; ?>

    ockeghem
    ockeghem 2014/07/04
    PHP5.6の新機能。日本語訳はこれからのようですね
  • PHP: imagecrop - Manual

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    ockeghem
    ockeghem 2014/02/06
    PHP-5.5.9でこの関数のヒープオーバーフロー脆弱性が解消されているようですが、『この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています』なので影響はないかと
  • PHP 5.4.28 Released

    We’re pleased to announce our first conference, PHP South Coast 2015! Taking place on the south coast of England in Summer 2015, where community members from around the world will come together to learn and share information about the latest trends and technologies in professional PHP development. Bulgaria Web Summit 2015 is an event about (almost) everything a modern web person should know: {Prog

    ockeghem
    ockeghem 2014/01/25
    PHP 5.3.29リリースそしてPHP5.3はサポート終了
  • PHP: setcookie - Manual

    setcookie() は、その他のヘッダ情報と共に 送信するクッキーを定義します。 ほかのヘッダ情報と同様に、 クッキーは、スクリプトによる他のあらゆる出力よりも前に 送信される必要があります(これはHTTPプロトコルの制約です)。 <html> や <head> タグはもちろん 空白も含め、あらゆる出力よりも前にこの関数をコールするようにしなければなりません。 一度クッキーが送信されると、次のページのロードからは $_COOKIE 配列によってクッキーにアクセスできます。 クッキーの値は $_REQUEST 配列からもアクセスできるかもしれません。 パラメータ setcookie() の各パラメータがどのように作用するのかを知るには » RFC 6265 を参照ください。 name クッキーの名前。 value クッキーの値。この値はクライアントのコンピュータに保存されますので、 重要

    ockeghem
    ockeghem 2013/10/20
    書いてあった>『値が空文字列あるいは FALSE…値を 'deleted' に変更した上で有効期限を 1 年前に設定しています』
  • PHP: fpassthru - Manual

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    ockeghem
    ockeghem 2013/08/18
    fpassthru は自動的にfcloseしてくれるというのだけど、マニュアルには明記されていないようですね
  • PHP: current - Manual

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    ockeghem
    ockeghem 2013/08/11
    current()関数というのがあるのですか…知らんかった (>_<)
  • A further update on php.net

    The PHP development team announces the immediate availability of PHP 5.4.23. About 10 bugs were fixed, including a security issue in OpenSSL module (CVE-2013-6420). All PHP 5.4 users are encouraged to upgrade to this version. For source downloads of PHP 5.4.23 please visit our downloads page, Windows binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeL

    ockeghem
    ockeghem 2013/07/12
    PHP 5.4.20 released
  • PHP: Manual Quick Reference

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    ockeghem
    ockeghem 2013/05/09
    ktkr> PHP 5.5.0RC1 is available
  • PHP: Manual Quick Reference

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    ockeghem
    ockeghem 2013/02/13
    セッションの終了やログアウト時にはセッションクッキーを削除することを力説しているがその必要はない。クッキー削除が必要な理由を書いてくれれば反論もしやすいのだが
  • PHP: Manual Quick Reference

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    ockeghem
    ockeghem 2012/12/09
    『おすすめの API mysqli か PDO_MySQL のどちらかを使うことをおすすめします。古い mysql 拡張モジュールを新規開発で使うのはおすすめしません』
  • PHP: flock - Manual

    flock() を使うと、(ほとんどの Unix、そして Windows さえ含む) 事実上すべてのプラットフォームで使用可能な、簡易な読み手/書き手モデルを実現できます。 ロックの解放は、fclose() が実行されるか、 stream がガベージコレクションされた段階で行われます。 PHP は、恣意的にファイルをロックする汎用の手段を提供します (これは、アクセスする全プログラムが同一のロックの方法を使用する必要があり、 そうでない場合は動作しないことを意味します)。 デフォルトでは、要求したロックが確保されるまでこの関数はブロックします。 以下で説明する LOCK_NB オプションでこの挙動を制御することができます。 パラメータ stream fopen() を使用して作成したファイルシステムポインタリソース。 operation operation は以下のいずれかとなります。 共

    ockeghem
    ockeghem 2012/12/03
    これは重要な変更では?>『5.3.2 ファイルのリソースハンドルを閉じたときにロックを自動的に解放する機能が削除されました。 ロックの解放は、常に手動で行わなければなりません』
  • PHP: PHP 5 ChangeLog - Version 5.4.0

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    ockeghem
    ockeghem 2012/11/23
    PHP5.4.9がリリースされましたが…『max_input_vars doesn't filter variables when mbstring.encoding_translation = On』←うわぁ、こんなバグがあったのか(要確認)
  • PHP: ユーザー定義関数 - Manual

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    ockeghem
    ockeghem 2012/07/06
    入門書で説明する必要はあるかな?>『関数名は大文字小文字を区別しませんが、通常は 関数宣言時と同じ名前で関数をコールする方が好ましい』
  • PHP: PHP 5.4.0 Release Announcement

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    ockeghem
    ockeghem 2012/03/02
    祝! PHP5.4.0 リリースされました
  • 5.3.7 upgrade warning - PHP: News Archive - 2011

    Ibuildings is proud to organise the sixth Dutch PHP Conference on June 8 and 9, plus a pre-conference tutorial day on June 7. Both programs will be completely in English so the only Dutch thing about it is the location. Keywords for these days: Know-how, Technology, Best Practices, Networking, Tips & Tricks. Website: http://www.phpconference.nl/ The PHP development team is proud to announce the th

    ockeghem
    ockeghem 2011/08/23
    『Due to unfortunate issues with 5.3.7 (see bug#55439) users should wait with upgrading until 5.3.8 will be released (expected in few days).』<まもなくPHP5.3.8が出ると
  • PHP: array - Manual

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    ockeghem
    ockeghem 2011/07/25
    『array()は、実際にはリテラル配列を表現するための 言語構成要素であり、通常の関数ではありません』<そうだったのか
  • PHP: htmlspecialchars - Manual

    htmlspecialchars( string $string, int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, ?string $encoding = null, bool $double_encode = true ): string 文字の中には HTML において特殊な意味を持つものがあり、 それらの来の値を表示したければ HTML の表現形式に変換してやらなければなりません。 この関数は、これらの変換を行った結果の文字列を返します。 入力文字列の中で名前付きエンティティに関連づけられたものを すべて変換する必要がある場合には、代わりに htmlentities() を使用してください。 この関数への入力文字列と最終的なドキュメントとの間で文字セットが一致している場合は、 この関数を使えば HTML ドキュメントに

    ockeghem
    ockeghem 2011/07/24
    『この関数を使ううえでは ISO-8859-1 と ISO-8859-15、 UTF-8、cp866、 cp1251、cp1252 そして KOI8-R は事実上同等です』<この記述(原文)はひどい。誰に文句を言えばいいですか?