たびたびすみません. html/upload/save_image の中に, 画像は生成されていますでしょうか? 生成されていれば, ブラウザから直接, 下記のように表示させてみて下さい. 引用:
たびたびすみません. html/upload/save_image の中に, 画像は生成されていますでしょうか? 生成されていれば, ブラウザから直接, 下記のように表示させてみて下さい. 引用:
画像のアップロードがでずに困ってます。 素人で申し訳ないのですが、どなたか教えてください。 EC-CUBEバージョン 2.0.1 PHPバージョン PHP 5.2.5 DBバージョン MySQL 5.0.45 エラーメッセージはでないのですが アップすると管理画面上(通常画像が出る部分)に画像部分にALTとなるテキストがでます。 プレビューで見ると、リンク切れ画像が表示されます。 uploadフォルダのパーミッションは777 upload/save_image/のパーミッションは755 (それぞれ777.755で試してみましたが、どれもだめでした) save_image/フォルダには、作成されるべき画像名のファイルは できておりません。 過去ログを色々拝見しましたが GDの問題なのでしょうか。 phpinfoでは以下のような値がでました。 GD Support enabled
インストール コンパイルするにはlibyamlをあらかじめインストールする必要があります。以下の手順でlibyamlをインストールしてください(リスト6)。 リスト6 libyamlのインストール $ wget http://pyyaml.org/download/libyaml/yaml-0.0.1.tar.gz $ tar xzf yaml-0.0.1.tar.gz $ cd yaml-0.0.1/ $ ./configure $ make $ sudo make install 続いて、php_yamlを次の手順でインストールします(リスト7)。コンパイルする前に、こちらのパッチ[1]を適用してください。 リスト7 php_yamlのインストール $ wget http://www.opendogs.org/pub/php_yaml-0.3.0.tgz $ tar xzf p
◆ 関数リファレンス mb_convert_kana( ) 引数で指定した文字列を第2引数で指定した変換オプションに従って変換します。また、第3引数には出力する文字エンコーディングを指定できますが、省略すると内部文字符号でエンコードされます。 なお、変換オプションの値は以下のとおりです。 Option意味
string mb_ereg_replace ( string $pattern , string $replacement , string $string [, string $option ] ) パラメータ pattern 正規表現パターン。 マルチバイト文字を pattern で使用することができます。 replacement 置換文字列。 string 調べたい文字列。 option option パラメータで、マッチングの動作を変更可能です。 i を指定した場合、大文字・小文字が 区別されなくなります。 x を指定した場合、空白が無視されます。 m を指定した場合、マルチラインモードとなり、 改行文字も "." に含まれるようになります。 p を指定した場合、POSIX モードとなり、 改行も通常文字とみなされるようになります。 e を指定した場合、文字列 replaceme
komura komura @ ma9.seikyou.ne.jp 2005年 8月 12日 (金) 19:12:04 JST 前の記事 [PHP-users 26439] Re: mb_eregi_replaceの置換について 次の記事 [PHP-users 26452] Re: mb_eregi_replaceの置換について 記事の並び順: [ 日付 ] [ スレッド ] [ 件名 ] [ 著者 ] komura です。 On Fri, 12 Aug 2005 12:33:15 +0900 shima tetuo <mlmlml @ lily.freemail.ne.jp> wrote: > ------------------- > テストコード > ------------------- > <?php > var_dump(mb_regex_encoding()); > var_
半角カタカナと全角カタカナに関しては想像もつかないね。小さいァから小さいヶと言う事だそう。表で見ないと分からないね。 PHPだけではなく、他の言語(JavaScript等)でも共通ですね(文字コード表は一緒)。
日時: 2007/05/07 21:54:21 名前: HIRO◆jJZ7z.QqiPY はじめして、HIROと申します。 以後、お見知りおきを。 【 本題 】 マルチバイト文字列の正規表現に関して質問があります。 このたび、PHPにてマルチバイト文字列の正規表現を行いたく、以下のようなスクリプトを実行しました。 ------------------------------------------------------- <?php $str = "てすとたろう"; if (mb_ereg("^[あ-ん]+$", $str)) { echo "すべてひらがなである"; } else { echo "すべてひらがなではない"; } ?> --------------------------------------------------------- が、エラーを出力されてしまい、困ってい
よく使うものをカテゴリごとに逆引きサンプル集で紹介。 こんな便利な関数があったのか、と発見もあるはず。
PHPで、自分が動いているURLを取得するにはどうすればいいのでしょうか?
この春からプログラムにチャレンジしよう!と意気込んでいる方もいらっしゃるのではないでしょうか? 先日、おすすめ本を紹介させていただいたのですが、本を読みながらの学習では、途中でつまづいたり、なかなか長続きしない、といった方もいらっしゃると思います。 そんな時のお手伝いができたら…と、シーブレインでは今回の連載 「10日で覚えるPHPのキソ」を企画いたしました。 どうぞよろしくお願いいたします。 第1回は PHPを勉強する時に、まず最初に覚えておきたい約束事! についてお話しいたします。 その前に、PHPとは… PHPはプログラミング言語 日本語・ドイツ語・フランス語があるようにPHPも言語の1つです。 プログラミングをするための言語ですね。 プログラミング言語には大きく分けて、インタプリタ型とコンパイラ型があります。 PHPはコンピュータが直接理解可能なコードへの翻訳作業を、プログラムの実
こんにちは、牧野です。 今回は、PHPでユニットテストを行う際に便利なユニットテスト用フレームワーク、PHPSpecの紹介です。 PHPSpecは、phpで振舞駆動開発ができるようにと作られたものです。 PHPSpecの詳細はこちら http://dev.phpspec.org/manual/ja/ 日本語マニュアルが大変充実しています。 振舞駆動開発について簡単に説明すると、テストありきの開発手法であるテスト駆動開発を発展させたような開発手法で、このプログラムはこんな動作をするべきだ、という要求仕様(スペック)を、そのままテストコードとして記述しながら開発を進めていく、という感じのものです。PHPSpecのような振舞駆動開発用フレームワークでは、要求仕様がすぐわかるようなテストコードの書き方をするようになっているので開発効率が上がるようです。 ではさっそく、まずはインストールについてです
PHP 基礎編5 - 文字列関数 substr、strlen、strpos、split、list、time、crypt ■文字列演算子 . 文字列の結合 【例】 $a = 'abc'; $b = 'def'; $c = $a . $b; ** $c には、'abcdef' がセットされます。 $a = 'abc'; $a .= 'def'; ** $a には、'abcdef' がセットされます。 ■文字列関数 strtolower 小文字に変換 strtoupper 大文字に変換 substr n 番目から n バイトの文字列を切り出し strlen 何バイトあるか数える strpos 指定文字列が何番目から存在するか調べる strrpos 指定文字列が最後から何番目に存在するか調べる sprintf 書式指定変換をする ltrim 左側空白除去 (\n、\r、\t も除去) rtrim
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く