2009年12月07日 過去Blog
今回RSSを取り出すのに使っていた「MagpieRSS」を以下のように使っていたのですが、 include (‘rss_fetch.inc’); require_once ‘code_table.ucs2jis’; require_once ‘jcode.php’; 繰り返し処理を行おうとしたところ、Fatal error: Cannot redeclare phpでのエラーとういうエラーが出現するので、以下のように修正したら、とりあえず動くようになりました。 ちゃんとした解決策なのかどうかは不明ですが・・・( ; ゚Д゚) require_once (‘rss_fetch.inc’); require_once ‘code_table.ucs2jis’; require_once ‘jcode.php’;

この投稿へのコメント

コメントはまだありません。

コメントを残す

メールアドレスが公開されることはありません。

次のHTML タグと属性が使えます。
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CAPTCHA


ピックアップ記事

テーブルの背景を設定する

2010年12月14日 過去Blog
iPhoneアプリに設置されているテーブルの背景色を変更する方法です。 //テーブルの背景色 self.view.backgroundColor = [UIColor groupTableViewBackgroundColor]; 文字列の設定と同様に、以下のような記述も可能です。 self.view.backgroundColor = [UIColor colorWithRed:0.0 gre…
「テーブルの背景を設定する」をはてなブックマークに追加

サーバの負荷(メモリ使用量を調べる)sar -r

2010年03月31日 過去Blog
sarコマンドを利用するために必要なシステムをインストール # yum install -y sysstat phpでデータを抜き出す $pp = popen('/usr/bin/sar -r 1 1', 'r'); while(!feof($pp)): var_dump(fgets($pp)); endwhile; pclose($pp); $pp = popen('/usr/bin/…
「サーバの負荷(メモリ使用量を調べる)sar -r」をはてなブックマークに追加

Drupal6でクリーンURL

2011年04月25日 過去Blog
.htaccessに以下を記述してルートに設置 # Various rewrite rules. <IfModule mod_rewrite.c>   RewriteEngine on   # Modify the RewriteBase if you are using Drupal in a subdirectory and   # the rewrite rules are n…
「Drupal6でクリーンURL」をはてなブックマークに追加

PHP での SimpleXML 処理>>RSS取得

2009年12月05日 過去Blog
phpでrssの情報を抜き出したい場合は、titleやlinkの要素は以下の通りで抜き出せます。 <?php // Load and parse the XML document $rss = simplexml_load_file('http://partners.userland.com/nytRss/nytHomepage.xml'); $title = $rss->channel->title; ?> …
「PHP での SimpleXML 処理>>RSS取得」をはてなブックマークに追加

UIImageViewに画像を配置する

2010年12月17日 過去Blog
IBOutlet UIImageView *bgImage; @property(nonatomic,retain) IBOutlet UIImageView *bgImage; 上記のようなbgImageがInterfaceで宣言され、Interface Builder上に、UIImageViewが配置されているとすると以下のように実装すれば、該当箇所に画像が挿入されます。 bgImage.…
「UIImageViewに画像を配置する」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy