クロスサイトスクリプティング攻撃を防ぐため、データの表示は必ずサニタイズを行っておく必要があります。サニタイズを行っているのは以下の記号と文字です。 [javascript] => javascript [vbscript] => vbscript [embed] => embed [script] => script [object] => object [applet] => applet [bgsound] => bgsound [src] => src [href] => href [iframe] => iframe [on] => on [JAVASCRIPT] => JAVASCRIPT [VBSCRIPT] => VBSCRIPT [EMBED] => EMBED [SCRIPT] => SCRIPT [OBJECT] => OBJECT [APPLET] => APPLE
Color Extract クラス PHPで画像に使われている色を抽出する方法。 Flickr にあるような画像の色検索なんかを行いたい場合、あらかじめ画像の色についてキャッシュしておく必要がありますが、その色の取り出し方が面倒だったりします。 そこで、簡単に画像の色を取り出すクラスライブラリを今回紹介します。 このライブラリを使えば、次のように画像を、HTML色に変換して、色の使われた回数まで計算してくれて簡単に連想配列にはいります。 ↓ 使い方は次のようにすごく簡単で、次のサンプルのようにコーディングするだけです。 <?php include_once("colors.inc.php"); $ex=new GetMostCommonColors(); $ex->image="test.jpg"; $colors=$ex->Get_Color(); print_r($colors); ?
If you have found this free “open source” software useful and saves you time, consider a donation to encourage on-going development. One of the tasks of a developer is to make their software easy to use. Not just easy, simple. Simple to configure, simple to implement, simple to support. If you are going to invest your time incorporating software in your own project, get software that respects your
PHP MSN Messenger Class : flumpCakes This is a simple to use class file which can be used to connect to the MSN Messenger Network. For the SSL authentication the php_curl modules can be used, or a curl executable (binary). PHPからMSN Messengerを操作するクラスライブラリ : flumpCakes。 PHPでMSN Messengerのメッセンジャーを送受信できます。 クラスライブラリなので次のように簡単に使えます。 <?php include('msnp9.class.php'); include('msn_sb.class.php'); $msn = n
The problem with automatic uploads is particularly evident when several images of completely different dimensions are displayed together on a page, such as four product images that have been uploaded through a content management system (CMS). Finding an attractive way of displaying any two, three, or four images together (regardless of shape and size) has always been difficult without manual resiz
Free RSS to HTML PHP Script In addition to making your RSS feed available to your visitors for use with their RSS Feed Reader, as a webmaster you may also want to make the same feed available on your website for viewing with a regular web browser. RSSを処理するためのライブラリは多く存在しますが、PHPの知識がなければ使えなかったりするものも多いです。 そこで、RSS2HTMLを使えば、PHPの知識はなくとも、特定のRSSをHTMLに簡単に変換できます。 使用するには、ダウンロード後、解凍したパッケージ内のrss2html.phpを編集します。
phpSniff 2.1.4 on SourceForge phpSniffを使えば、ユーザエージェントから様々な情報を簡単に取得することができます。 クラスライブラリの形式で、面倒な正規表現などを使わなくても、使っているブラウザがIEの場合、"ie"文字列を取得できたりします。 javascript, platform, os, language といった情報が簡潔に分かりやすい情報として取れるのでなかなか使えそうです。 Sourceforgeでオープンソース開発されています。
RSSWriter RSSWriter is a convenience class for generating RSS 1.0 feeds with PHP. RSSWriterを使えば、RSSの詳しいフォーマットについて知らなくても、手軽にRSS1.0 feedを作成することが出来ます。 クラスの形式でライブラリ化されているので、自作のツールに組み込むのも容易です。 サンプルは次のような感じ。 <?php include("rss10.inc"); $rss=new RSSWriter("http://www.example.org/", "Example Site", "The best examples out there.", array( "dc:publisher" => "Example Publishing Inc.", "dc:creator" => "E X Amp
ほぼスマホ・MEDIAS for BIGLOBEの広告が気になり、ホームページにアクセスしてみました。 要はMVNOですね。今ならキャンペーン中で、「MEDIAS NEC-102」がタダとのこと。スマホの代わりにモバイルルータも選べるようです。 月額は、24時間使えるスタンダードプランで2,980円。2:00~20:00の時間限定のデイタイムプランで1,980円。安い・・・。 このデイタイムプランってのは魅力的ですね。なんか使いすぎると速度制限があるみたいですけど、まあそんなに動画とかガンガン見たりすることもないのでおそらくその点は大丈夫でしょう。 非常に気になる存在ですね。他の人のレビューとか見てみよう・・・。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く