タグ

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

  • PHP: コア php.ini ディレクティブに関する説明 - Manual

    以下に設定ディレクティブに関する 簡単な説明を示します。 short_open_tag bool PHP タグの短縮型 (<? ?>) を使用 可能にするかどうかを設定します。PHPをXMLと組み合わせて用いる 場合は、<?xml ?>をファイル中で用 いるためにこのオプションをオフにする必要があります。オンにし た場合にPHPでXMLを出力するには、例えば、次のようにします。 <?php echo '<?xml version="1.0"?>'; ?> これをオフにした場合、長い方の形式のタグ (<?php ?>)を使用する必要があります。 注意: これは、<?= 記法に影響を与えません。常に有効となります。 precision int 浮動小数点数に関して表示される最大桁数を指定します。 -1 は、数値を丸める際に拡張アルゴリズムを用いることを意味します。 serialize_prec

    PHP: コア php.ini ディレクティブに関する説明 - Manual
    tacchini
    tacchini 2012/02/09
    cgi.force_redirect boolean cgi.force_redirect は、ほとんどのWebサーバのもとで CGI として PHP を実行する際のセキュリティを確保するために必要です。 未定義のままの場合、PHPはデフォルトでこれを on にします。 これを off にする時
  • PHP: ファイルシステム 関数 - Manual

    参考 関連する関数については、ディレクトリ およびプログラム実行の節を 参照ください。 リモートファイルとして使用することができる種々のURLラッパーの一覧 と説明については、サポートするプロトコル/ラッパーも参照ください。 目次basename — パスの最後にある名前の部分を返すchgrp — ファイルのグループを変更するchmod — ファイルのモードを変更するchown — ファイルの所有者を変更するclearstatcache — ファイルのステータスのキャッシュをクリアするcopy — ファイルをコピーするdelete — unlink か unset を参照くださいdirname — 親ディレクトリのパスを返すdisk_free_space — ファイルシステムあるいはディスクパーティション上で利用可能な領域を返すdisk_total_space — ファイルシステムあるいは

    PHP: ファイルシステム 関数 - Manual
    tacchini
    tacchini 2011/08/24
  • PHP: $_SERVER - Manual

    $_SERVER (PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8) $_SERVER — サーバー情報および実行時の環境情報 説明 $_SERVER は、ヘッダ、パス、スクリプトの位置のような 情報を有する配列です。この配列のエントリは、Web サーバーにより 生成されます。全ての Web サーバーがこれら全てを提供する保証はありません。 サーバーは、これらのいくつかを省略したり、この一覧にない他のものを 定義する可能性があります。しかし、これらの変数のほとんどは、 » CGI/1.1 specification で定義されています。したがって、これらのほとんどは定義されていることを 期待することができます。 注意: PHP を コマンドライン から実行している場合、 これらの変数のほとんどは利用できないか、 なんの意味も持ちません。 以下に示された要素に加え、

    PHP: $_SERVER - Manual
    tacchini
    tacchini 2011/08/10
  • PHP: header - 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: header - Manual
    tacchini
    tacchini 2011/08/10
  • PHP: virtual - 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: virtual - Manual
  • PHP: readfile - 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

    tacchini
    tacchini 2011/08/09
  • PHP: file_get_contents - Manual

    file_get_contents( string $filename, bool $use_include_path = false, ?resource $context = null, int $offset = 0, ?int $length = null ): string|false この関数は file() と似ていますが、 offset で指定した場所から開始し length バイト分だけ ファイルの内容を文字列に読み込むという点が異なります。 失敗した場合、file_get_contents() は false を返します。 file_get_contents()はファイルの内容を文字列に読み込む 方法として好ましいものです。もしOSがサポートしていれば パフォーマンス向上のためにメモリマッピング技術が使用されます。 注意: 空白のような特殊な文字を有する URI をオー

    PHP: file_get_contents - Manual
  • PHP: SimpleXML - Manual

    Here is a recursive function that will convert a given SimpleXMLElement object into an array, preserving namespaces and attributes. <?php function xmlObjToArr($obj) { $namespace = $obj->getDocNamespaces(true); $namespace[NULL] = NULL; $children = array(); $attributes = array(); $name = strtolower((string)$obj->getName()); $text = trim((string)$obj); if( strlen($text) <= 0 ) { $text = NULL; } // ge

    PHP: SimpleXML - Manual
  • PHP: DOMDocument::save - 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: 基本的な SimpleXML の使用法 - Manual

    的な SimpleXML の使用法 このリファレンスの多くの例では XML 文字列が必要です。それぞれの例で この文字列をくり返す代わりに、あるファイルにこの文字列を保存して、 例ごとに読みこむことにします。この読みこまれるファイルは、以下の例 に関するセクションで使います。 もしくは、XMLドキュメントを作成し、 simplexml_load_file() により読みこむことも 可能です。 <?php $xmlstr = <<<XML <?xml version='1.0' standalone='yes'?> <movies> <movie> <title>PHP: Behind the Parser</title> <characters> <character> <name>Ms. Coder</name> <actor>Onlivia Actora</actor> </cha

    PHP: 基本的な SimpleXML の使用法 - Manual
  • PHP: tempnam - 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: tempnam - Manual
    tacchini
    tacchini 2010/11/11
  • PHP: OCI8 - 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: OCI8 - Manual
  • PHP: php.ini ディレクティブのリスト - 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: php.ini ディレクティブのリスト - Manual
    tacchini
    tacchini 2010/10/15
  • PHP: return - 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: return - Manual
    tacchini
    tacchini 2010/09/09
    returnはnullを返すので未定義(undefined)にはならない
  • PHP - 型の比較表

    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 - 型の比較表
    tacchini
    tacchini 2010/09/09
  • PHP: DOMDocument::loadHTML - 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::loadHTML - Manual
    tacchini
    tacchini 2010/05/26
    htmlパーサ
  • 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: 新機能 - Manual

    新機能 PHP 5.3.0 には多くの新機能が含まれています。 名前空間 のサポートが追加されました。 遅延静的束縛 のサポートが追加されました。 ジャンプラベル (制限付きgoto) のサポートが追加されました。 ネイティブクロージャ (ラムダ/無名関数) のサポートが追加されました。 マジックメソッドが二つ追加されています。 __callStatic() と __invoke() です。 Nowdoc 構文がサポートされました。これは ヒアドキュメント のように動作しますが、シングルクォートで囲まれた文字列として扱われます。 ヒアドキュメント 構文は、静的な クラスプロパティ/定数 を初期化できるようになりました。 ヒアドキュメント 構文は、ダブルクォートを使って宣言できるようになりました。これは Nowdoc 構文を補完するものです。 定数 はクラスの外でも const キーワードを

    tacchini
    tacchini 2010/01/20
  • PHP: Sessions 実行時設定 - Manual

    INI_* モードの詳細および定義については どこで設定を行うのか を参照してください。 セッション管理システムは、php.iniファイルに記述可能な多くの設定オ プションをサポートします。以下に概要を示します。 session.save_handler string session.save_handler は、 セッションに関連するデータの保存および取得時に使用するハンドラを定義します。 デフォルトは、files です。各拡張モジュールで、 独自の save_handler を使用できることに注意しましょう。 インストール環境単位で登録されているハンドラを取得するには phpinfo() を使用します。 session_set_save_handler() も参照ください。 session.save_path string session.save_path は、保存ハンドラに渡される

    PHP: Sessions 実行時設定 - Manual
  • 1