タグ

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

  • 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

    escape_artist
    escape_artist 2013/06/21
    PHP5.5.0リリース
  • PHP: 接続処理 - Manual

    Closing the users browser connection whilst keeping your php script running has been an issue since 4.1, when the behaviour of register_shutdown_function() was modified so that it would not automatically close the users connection. sts at mail dot xubion dot hu Posted the original solution: <?php header("Connection: close"); ob_start(); phpinfo(); $size=ob_get_length(); header("Content-Length: $si

  • PHP: delete - 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

    escape_artist
    escape_artist 2013/05/14
    たぶん、あなたの求めるものはunset()だ。
  • PHP: http_response_code - 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

    escape_artist
    escape_artist 2013/05/14
    便利だ
  • PHP: class_alias - 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

    escape_artist
    escape_artist 2013/03/13
    useだとファイル内に限ったエイリアスになるけど、これで作るとグローバルにエイリアスを作れるみたい
  • PHP: Yaf_Action_Abstract - 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

    escape_artist
    escape_artist 2012/05/31
    symfony1風のaction個別定義ができる。
  • PHP: Yaf_Controller_Abstract - Manual

    はじめに Yaf_Controller_Abstract は Yaf システムの中心となるクラスです。 MVC は Model-View-Controller の略で、 アプリケーションのロジックと表示のロジックを切り離すためのデザインパターンです。 すべてのカスタムコントローラは Yaf_Controller_Abstract を継承する必要があります。 カスタムコントローラでは __construct を定義できません。そのため、 Yaf_Controller_Abstract ではマジックメソッド Yaf_Controller_Abstract::init() を用意しています。 カスタムコントローラで init() メソッドを定義すると、 コントローラのインスタンスを作成するときにそれが呼ばれます。 アクションには引数を持たせることができます。 リクエストが来たときに、もしリクエス

    escape_artist
    escape_artist 2012/05/31
    Yafキモイなw PHP5.2でもmixinっぽいことができそうな作りになってる。extensionならではか。
  • PHP: XML パーサ - Manual

    XML パーサ はじめにインストール/設定要件インストール手順実行時設定リソース型定義済み定数イベントハンドラ大文字変換(Case Folding)エラーコード文字エンコーディング例XML エレメント構造の例XMLタグのマッピングの例XML 外部エンティティの例XML パーサ 関数xml_error_string — XML パーサのエラー文字列を得るxml_get_current_byte_index — XML パーサのカレントのバイトインデックスを得るxml_get_current_column_number — XML パーサのカレントのカラム番号を取得するxml_get_current_line_number — XML パーサのカレントの行番号を得るxml_get_error_code — XML パーサのエラーコードを得るxml_parse_into_struct — 配列構

    escape_artist
    escape_artist 2012/05/15
    SAX実装ってXMLReaderだけじゃないのね
  • PHP: Yaf_Loader - Manual

    escape_artist
    escape_artist 2012/04/16
    include_pathすら無視する素敵仕様のautoloader。速いのかな
  • PHP: PDO::setAttribute - Manual

    PDO::setAttribute (PHP 5 >= 5.1.0, PHP 7, PHP 8, PECL pdo >= 0.1.0) PDO::setAttribute — 属性を設定する データベースハンドルの属性を設定します。 利用可能な通常の属性は以下の通りです。いくつかのドライバでは、 ドライバ固有の属性を使用することが可能です。 ドライバ固有の属性は、 他のドライバでは使っては いけない ことに注意して下さい。 PDO::ATTR_CASE 強制的にカラム名を指定したケースにします。 以下の値のうち、ひとつを指定できます: PDO::CASE_LOWER 強制的にカラム名を小文字にする。 PDO::CASE_NATURAL データベースドライバによって返されるカラム名をそのままにする。 PDO::CASE_UPPER 強制的にカラム名を大文字にする。 PDO::ATTR_ERR

    escape_artist
    escape_artist 2012/04/09
    PDO::ATTR_STRINGIFY_FETCHES: フェッチする際、数値を文字列に変換する。/ falseにできるらしいが…変換されるなあ
  • PHP: Weakref - Manual

  • PHP: ip2long - 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

    escape_artist
    escape_artist 2012/03/26
    IPv4アドレスの検証に使えるっぽい。
  • PHP: is_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

    escape_artist
    escape_artist 2012/03/21
    is_assoc()の実装例がコメントに書かれていて参考になる。
  • 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

    escape_artist
    escape_artist 2012/03/02
    祝!!
  • PHP: OAuth::fetch - 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

    escape_artist
    escape_artist 2012/02/07
    第2引数はarrayと書いてあるけれどstringでもOK
  • PHP: News Archive - 2012

    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

    escape_artist
    escape_artist 2012/02/03
    もう5.3.10が出てる
  • PHP: SimpleXMLIterator - 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

    escape_artist
    escape_artist 2011/12/29
    SimpleXMLの拡張クラス。お手軽に配列に変換したりできる
  • 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

  • PHP: DOMDocument::registerNodeClass - 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

  • 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

    escape_artist
    escape_artist 2011/11/10
    循環参照対策