PHPでの画像のリサイズ、切り抜きが自由自在「class.image.php」 2008年02月21日- Icebeat | class.image PHPでの画像のリサイズ、切り抜きが自由自在「class.image.php」 class.image.php を使えば、分かりやすいコードで、簡単に画像のリサイズ、切抜きが可能です。 例えば、3行で、画像のサムネイルが作れてしまいます。 まずは、画像を幅200pxでリサイズ&保存のコード $thumb = new Image('image.jpg'); $thumb->width(200); $thumb->save(); そして、画像を50%のサイズにリサイズのコード $thumb = new Image('image.jpg'); $thumb->resize(50); $thumb->save(); そして、左0px、上30pxの位置
五十川です。 携帯サイトの見栄えをシミュレートするウェブアプリ作りました。と言っても、実際に作ったのはかれこれ半年以上前で、手直ししてから公開しようと思ってたら、結局「guid=ON」を付け足したくらいであとは放置だったので、さすがにいい加減晒そうと。 任意のヘッダでリクエストして、レスポンスの絵文字とか変換してサイトの見栄えを確認するというものですが、これはそもそもExt JSをいじってた頃に、Ext JSでこういうの作ればいい感じになるんじゃね?ということで、丁度2.0がリリースされた頃にデモ用に作ったものなのでした(なので、かれこれ半年以上前) 実機テストの代用になるわけでは、もちろんありませんが、絵文字も含めたマルチキャリアでの見栄えを手軽に確認したいときなどに、わりと便利に使えてたりします。 スクリーンショット 機種ごとのプリセットのヘッダグループをYAMLファイルに書いておいて
安全性があります。fineを使ってみると、サクラがいるのでこれも晒します。 ありえない価格帯ですし、お金を無駄にするのが特徴です。このサイトを使っているなど、信頼性の高い口コミ情報、評判を検索しているとおおっぴらに書くと登録が減っていくのがめんどくさいときや思いつかないときに流行り物をもじったサクラがいる可能性が高いFacebook系の口コミ情報から「出会えた」という回答がベストアンサーとなっているだけです。 これらのことを予め確認しているというわけです。もちろんバカみたいな数のメッセージを送ってくる理由としては、男性に対していきなりやに騙される危険性があります。 fineアプリの運営曰く、LINE交換禁止しているだけの話です。 これらの出会い系や無料アプリ、Facebook系のマッチングアプリでも、婚活目的では詐欺被害に遭う危険性がありますが。 使用し続けてもこの陽菜ちゃんは出てきたサク
PHPで作られた3キャリア対応絵文字変換ライブラリ「MobilePictogramConverter」 2007年11月17日- 追記: MobilePictogramConverter は公開が停止されており、速度も低速なのでHTML_Emojiを使いましょう PHPで作られた3キャリア対応絵文字変換ライブラリ「MobilePictogramConverter」 今回は、「MobilePictogramConverter」という、PHPで作られた3キャリア対応の絵文字変換ライブラリをご紹介します。 PHPで作られた3キャリア対応絵文字変換ライブラリ「MobilePictogramConverter」 次のような特徴があるそうです。 DoCoMo, au, SoftBankの絵文字を相互変換可能 端末からサーバーへ送信された絵文字の変換が可能(掲示板など) SJIS/UTF-8に対応 PC
[追記]id:hetimaに指摘された、32bitアーキテクチャでの問題を修正。大感謝。 携帯電話からのWebアクセスゲートウェイのIPアドレスから、 携帯キャリアを判別したい場合がある。 通常は、id:tokuhiromによる Net::CIDR::MobileJP(WWW::MobileCarrierJP)を使うといいと思う。 DSAS開発者の部屋:携帯ゲートウェイのIPアドレス帯更新を効率的に確認する方法 http://d.hatena.ne.jp/tokuhirom/20071207/1196989588 YAMLが出力されるので、さまざまな環境で利用ができるよ! 今回、PHPで携帯キャリアを判別したいと思ったんだけど、 PHPでYAMLを読んでその中身をすべて検査するなんてやだいやだい! と沸き立つような強い衝動が。 というわけで、cidr-mobilejpというPythonスク
GPS PEARライブラリ / Net_UserAgent_Mobile_GPS キャリアや機種によって様々に仕様が異なるGPSの取り扱いを簡単にするためのPHP/PEARライブラリ PHPで各種携帯のGPS機能を簡単に扱える「Net_UserAgent_Mobile_GPS」。 PEARサイトでも公開されています。 リンク作成のサンプルは、次のような感じになるようです。 <?php require 'Net/UserAgent/Mobile/GPS.php'; try { $g = Net_UserAgent_Mobile_GPS::factory(); } catch (Net_UserAgent_Mobile_GPS_Exception $e) { var_dump($e->getMessage()); exit(); } $url = "http://test.com"; $str
New!!twitterMobile 0.7.3 にバージョンアップいたしました! 「今、何をしているの?」でつながるコミュニティ、Twitterを携帯端末で使用できます。 Ver0.6より、悠希さんが作成したService_Twitterを使用しております。 概要 2007年春より流行している新しい形のコミュニケーションサービス、Twitterをモバイルから閲覧・更新できるようにするPHPスクリプトです。 * 画像はVer 0.7のものです ダウンロード twitterMobile Ver 0.7.3 (ウィルスチェック済み) 使用前に、下記の説明を必ずお読みください。 0.7系よりアップグレードされる場合はそのまま全ファイルを上書きしてください。 それ以前のバージョンの場合は新規インストールを行ってください。 使用するに当たって (おそらく)対応するキャリア一覧: NTT DoCoMo
php_qr-0.1.0.tgz PHP4/5 用の QRコード生成拡張モジュールです。 インストール方法 通常の PHP 拡張モジュール同様にインストールできます。 tar xfz php_qr-0.1.0.tgz cd php_qr-0.1.0 phpize ./configure --enable-qr make sudo make install PHP の GD エクステンションを使った GIF, JPEG, PNG, WBMP 出力を有効にするには --enable-qr-gd オプションを使います。 zlib で圧縮した TIFF 出力を有効にするには --with-qr-tiff オプションを使います。 tar xfz php_qr-0.1.0.tgz cd php_qr-0.1.0 if ! -f /path/to/php-install-dir/include/php/
PHPを使ってたった2行で絵文字を取り除く方法 Tweet 2007/11/28 水曜日 matsui Posted in PHP | 2 Comments » 今回は、PHPで一番簡単と思われる、絵文字を取り除く方法をご紹介します。 iモードとau、およびソフトバンクのSJIS形式の絵文字を取り除くことができます。 サンプルコード $str = '絵文字[晴れ]'; mb_substitute_character('none'); $str = mb_convert_encoding($str, 'SJIS', 'SJIS'); // 出力 echo $str; ※ソースはSJISで記述してください これだけでOKです。 「mb_substitute_character」は、存在しない文字コードがある場合(いわゆるゲタになる場合)の処理を設定をするためのものです。 ここで”none”と設
ドコモ、au、ソフトバンクの各携帯電話のブラウザのユーザーエージェントは、パソコンのブラウザと同様にプログラムで取得することができる。 ユーザーエージェントを利用してキャリアの判別や機種判別を行うことができる。 ユーザーエージェントには、ドコモなら「DoCoMo」、au・TU-KAなら「UP.Browser」、ソフトバンクなら「J-PHONE」、「Vodafone」、「SoftBank」という文字列が含まれている。 これらの文字列を調べることで携帯電話のキャリアを判別することができる。 ただし、Vodafoneの一部の機種は、「UP.Browser」という文字列がユーザーエージェントの途中に含まれている。 キャリアを判別する場合は、「ユーザーエージェントの先頭の文字が何で始まるか」で判別した方が良いと思われる。 また、ユーザーエージェントには機種名の文字列が含まれているので、機種の判別を行
PEAR :: Package :: Net_UserAgent_Mobile モバイルキャリア判定用のPHPライブラリ「PEAR::Net_UserAgent_Mobile」が2/10にアップデートされました。 前回のリリースは、2007/2/20。1年ほど経っているわけなのですが、その間に携帯端末のユーザエージェントの状況なんかも変わりましたね。 新しく、モバイルかPCのどちらか、というのを判別するために、isMobile メソッドが追加されています。 (これまでは、isDocomo、isEZWebなど、具体的なキャリア名の指定が必要でした) より詳しい変更点はこちらを参照してください 携帯サイトをPHPで構築されている方は要チェックですね。 関連エントリ 携帯端末のUserAgentを扱うライブラリ:Net_UserAgent_Mobile
こんにちは、亀本です。 最近はあつまろ☆ねっとで携帯のことをあれこれやっているのもあって、携帯回りの事に妙に詳しくなってきました。 あつまろ☆ねっとは携帯向けの掲示板とメーリスを備たサイトとして考案していたので、必然的に絵文字周りは ・HTMLコーディング時の容易な入力 ・最低3キャリアの絵文字相互変換 ・auからのメール絵文字の解析 等が必要とされることになり、やっぱしっかり作らないとだめだなぁ、と思ってあつまろ☆ねっと開発の傍らで絵文字ライブラリの作成を行っていました。 で。。。最初は普通のライブラリとして作成していたんですが という何処からともなく湧き出た声に従って、symfonyのプラグインとして実装してみました。 前からずーーーと作りかけのものが放置プレイ状態になっていたんですが、きっかけもあって一通りプラグインとして用をなすところまで作りました。 ファイルはこちら: sfPic
携帯電話でのFlashの利用事例で、先ず思いつくのが各キャリアのトップページです。動きのあるインタラクティブなメニューは、皆さん、毎日目にしているのではないかと思います。一方、公式サイト、勝手サイトを問わず、その他の一般サイトに目を向けると、Flashで動きのあるバナーを制作するということは多いものの、モバイルサイトで全面的にFlashを採用した事例は少ないように思われます。 理由としては、PC版Flashでできるのにモバイル版Flash(Flash Lite)ではできないといった制約の多さにあります。と、同時に「制約が多いらしいね」という先入観で、モバイル版Flashの利用を躊躇されてい方も多いのではないかと思います。そこで、本チュートリアルでは、先ず最初に、モバイル版Flashの制約を解説し、何ができて何ができないかを整理します。その後、いくつかの制約の解決方法しながら、モバイル版Fl
携帯電話(au/NTT DoCoMo/SoftBank),PHS(WILLCOMのW-ZERO3シリーズなど)向けに「歌詞画作成機」「画像リサイズ」等の便利ツール(WEB TOOL)の公開・携帯サイト作成に役立つ情報の公開・最新携帯電話情報・モバイル関連のニュースやPHPスクリプトなどについて扱っているサイトです。このサイトについて 携帯電話(au/NTT DoCoMo/SoftBank),PHS(WILLCOMのW-ZERO3シリーズなど)向けに「歌詞画作成機」「画像リサイズ」等の便利ツール(WEB TOOL)の公開・携帯サイト作成に役立つ情報の公開・最新携帯電話情報・モバイル関連のニュースやPHPスクリプトなどについて扱っているサイトです。 一部ページ(携帯ツール)では、携帯電話からの閲覧・利用も想定している為、デザインや記述方法が携帯電話向けに最適化されているものがあります。予めご了
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く