2010年07月07日 過去Blog
■php.iniの設定が変更可能な場合 PHP コード スニペットを使用していて、ウェブページに “URL file-access is disabled in the server configuration” (URL ファイル アクセスはサーバーの設定で無効になっています) エラー メッセージが表示される場合は、ウェブマスターまたはホスティング プロバイダに連絡して、PHP サーバーの設定内の allow_url_fopen と allow_url_include を有効にしてください。 参考サイト:https://www.google.com/adsense/support/bin/answer.py?hl=jp&answer=70494 ■phpファイル内で解決する場合 <? php function get_content($url) { $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_HEADER, 0); ob_start(); curl_exec ($ch); curl_close ($ch); $string = ob_get_contents(); ob_end_clean(); return $string; } #usage: $content = get_content (“http://www.php.net”); var_dump ($content); ?> 参考サイト:http://jp.php.net/manual/ja/function.fopen.php

この投稿へのコメント

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

コメントを残す

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

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

CAPTCHA


ピックアップ記事

php MySQL 2つのテーブルを縦に並べて結合(union)し、結果を抽出する

2010年03月30日 過去Blog
select c1,c2,c3 from A union all select c1,c2,c3 from B 参照元:http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1115439551 divorce lawyer san diego…
「php MySQL 2つのテーブルを縦に並べて結合(union)し、結果を抽出する」をはてなブックマークに追加

サーバの時刻調整

2010年03月05日 過去Blog
サーバの時刻設定 1. 時刻確認 date 2. 時刻設定 date -s "2006/02/20 19:03" linux上で、上記のコマンドを実行すれば、調整出来ます。 参照元:http://memorva.jp/memo/linux/date_ntp.php buy anabolics online…
「サーバの時刻調整」をはてなブックマークに追加

iPhoneアプリのメモリリークを検証する方法

2011年01月06日 過去Blog
この記事に関しては、未完結ですが、覚え書きとして、随時追加していきます。 以下のような方法があるらしい。 Instruments XCodeのメニューの「実行」→「パフォーマンスツールを使って開始」→「Leaks」を選択して、「Instruments」 Allocations Xcodeからは「実行」メニューの「パフォーマンスツールを使って実行」から利用することができます。 Xcodeでローカ…
「iPhoneアプリのメモリリークを検証する方法」をはてなブックマークに追加

UITableView + UITexeField

2011年04月29日 過去Blog
TableView cellにTextFieldを表示させる 試してませんが、UITextView,UILabelなども同様の方法でいける気がします。 http://d.hatena.ne.jp/lynk/20090128#1233143275 http://code.google.com/p/iphone-codes/source/browse/EditableCell/?r=0a9142…
「UITableView + UITexeField」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy