CodeZine編集部では、現場で活躍するデベロッパーをスターにするためのカンファレンス「Developers Summit」や、エンジニアの生きざまをブーストするためのイベント「Developers Boost」など、さまざまなカンファレンスを企画・運営しています。
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
Takafumi Suzuki taka @ kpnet.co.jp 2004年 3月 15日 (月) 11:16:08 JST 前の記事 [PHP-users 20814]Re: smartyテンプレートをメモリーから読み込む 出力をメモリーに読み込む 次の記事 [PHP-users 20822]Re: smartyテンプレートをメモリーから読み込む 出力をメモリーに読み込む 記事の並び順: [ 日付 ] [ スレッド ] [ 件名 ] [ 著者 ] こんにちは。鈴木と申します。 > 【テンプレートをメモリーから読み込む】 Smarty自体あまり触ったことがないので 他に良い方法があるのかも知れませんが 自分も以前同じような事をしたくて http://sunset.freespace.jp/smarty/SmartyManual_2-6-2J_html/templates.from.el
3年前にMonth of PHP Buug(MOPB)としてPHP本体のセキュリティ上の問題を公開したStefan Esser氏が、今年の3月にPHPとPHPアプリケーションやセキュリティ上の問題を公募し公開するPHPセキュリティ月間(Month of PHP Security - MOPS)プロジェクトを行われました。 http://php-security.org/ MOPBのレポートもこのサイトで公開されています。PoCは当初は公開されていましたが、ドイツの法改正に伴い攻撃手法の公開が禁止され、削除されていました。詳しい事情は分かりませんが、現在はまた公開されているようです。 Stefan Esser氏に許可を得たので、これから数回に渡ってこのプロジェクトについて紹介します。 Month of PHP Securityとは MOPBは個人プロジェクトとして行われましたが、Month
Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/top_msg.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/php/forward/upload_comp/upload_comp.php on line 22 Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/top_msg.php' for inclusion (include_path='.:/usr/local/php/7.4/lib/
{foreach} を使用して、通常の数値添字配列と同じように 連想配列 をループします。 {section} のように、数値添字の配列のみ をループさせるということはありません。 {foreach} の構文は {section} よりずっと簡単ですが、その代わりに 1つの配列 しか扱えません。すべての {foreach} タグは、 終了タグ {/foreach} とペアである必要があります。
You may use the Smarty logo according to the trademark notice. For sponsorship, advertising, news or other inquiries, contact us at: Requirements Smarty 5.x: PHP 7.2+ Smarty 4.x: PHP 7.1+ Smarty 3.x: PHP 5.2+ Smarty 2.x: PHP 4 or 5 Change Log Github ChangLog Download Github Releases Smarty GIT Repository You can download the latest master from Smarty GitHub repository: Download lastest master as a
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の開発を8倍早くする方法 2007-05-30 大真面目に。 var_dumpの代わりに以下の関数d(dumpのd)を使います。 function d() { foreach (func_get_args() as $v) var_dump($v); } var_dump(8文字)がd(1文字)になるので8倍というわけです。単純すぎる方法ですが、タイプ量はかなり重要ですよ。実際に試してみるとわかりますが、体感できるほど快適になります。(エディタの補完機能でいいじゃんという話もありますが、それはそれで...) ちょっとリッチなバージョンも置いておきます。 // 白背景・黒文字・等幅フォント・フォントサイズ固定・ボーダー囲み function d() { echo '<pre style="background:#fff;color:#333;border:1px solid #ccc;
現在関わってるサービスの一つでは、 PHP5 + Symfony構成を使っているのですが、 strictエラーを出さないようにしたいとの要望が来ました。 strictエラーはPHP5に準拠したプログラミングしてないと でてしまうメッセージ。 PHP4でも動くように作られているPEARはもちろんその対象と なってしまいます。 出力レベルを変更すれば良いのですが、 それはやりたくないないとの方針なので、 PEARをどうしても使いたい場合は移植する必要があったり。 これが簡単かなと思っていたら、結構大変なことに気づきました。 アクセス修飾子をすべてのメンバ変数、メソッドにつける 基本的にstrictで出る多くは、アクセス修飾子、 「public/protected/private」をつけていないことや 静的関数「static」をつけていないことに起因してます。 まずそれぞれを一つづつ確認し、付記
ようこそphpspotへ! 当サイトではフリーのwindows用php開発環境であるPHPエディタ(forWin)や、 フリーのPHPスクリプト( PHP掲示板,webshot,webimager,CMS 等 )、PHPツールバー、テレビバー、 便利検索バー(Yahoo,Google,辞典検索)などを配布しています。 その他、PHP入門 や PHP5-TIPS、PHPサンプル集、MySQL解説、PHPレンタルサーバー特集 などのコーナーもあります。 スポンサードリンク 2009/09/14 サイトで配布しているPHPスクリプトに脆弱性!すぐ最新版にアップしてください! new! 2009/01/21 PHPで携帯サイト構築を公開! 2008/07/12 PHPによるWebアプリケーションスーパーサンプル 活用編 第二版が出ました 2008/04/22 PHPエディタをVistaに対応させま
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
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
fsockopen( string $hostname, int $port = -1, int &$error_code = null, string &$error_message = null, ?float $timeout = null ): resource|false hostname で指定したリソースへのソケット接続を開始します。 サポートされるソケットトランスポートのリスト に記述されているように、PHP は Internet ドメインまたは Unix ドメインをサポートします。 サポートされるトランスポートのリストは、stream_get_transports() を使って取得することもできます。 ソケットはデフォルトでブロックモードで開かれます。 socket_set_blocking() を使用して、 非ブロックモードに切換えることができます。 stream_so
Posted on 7月 19, 2006 Filed Under PHP | CSVのインポート機能を持ったシステムをPHP4環境からPHP5環境へ移行したら、 なぜかCSVデータを正しく読み込んでくれない。っていうか一文字目が文字化け。 超悩んだあげくぐーぐるさんで検索しても以下のような記事しかみつからず。 [PHP-dev 1205] PHP5のfgetcsv()関数について 人力検索はてな - PHP4からPHP5へソースの移(長いので略) csvファイルを読み込むと1バイト目の日本語が文字化け 3つ目の掲示板のyossyはあたくし自身なんですが・・・。 setlocaleとかいろいろ試してもしても結局読み込まれるCSVの文字コードは ほとんどSJISなせいなためかなんだかうまくいきません。 ちなみに検証環境はほぼFedoraCore4のデフォルトです。 PHPは5
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く