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


ピックアップ記事

tableViewに関する覚え書き

2011年01月03日 過去Blog
tableView に関する設定の説明です。 テーブル内のセクション数を設定する 以下の例では、2つのセクションをもつテーブルになります。 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 2; } セクション内の行数を指定する 以下の例では、最初のセクションは、2行のデータを表示し、次のセクションでも2行のデータを表示します。…
「tableViewに関する覚え書き」をはてなブックマークに追加

PHP strstr stristr ある文字列が含まれるかどうか調べる

2010年06月11日 過去Blog
$string = 'Hello World!'; if(stristr($string, 'earth') === FALSE) { echo '"earth" not found in string'; } // 出力は "earth" not found in string となります 参照元:http://www.php.net/manual/ja/function.st…
「PHP strstr stristr ある文字列が含まれるかどうか調べる」をはてなブックマークに追加

Macからのssh接続でエラー

2011年04月25日 過去Blog
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT …
「Macからのssh接続でエラー」をはてなブックマークに追加

Ushahidi API の使用方法

2011年04月08日 過去Blog
http://wiki.ushahidi.com/doku.php?id=ushahidi_api(英語版) http://wiki.ushahidi.com/doku.php?id=ushahidi_api_jp (日本語版) web hosting reviews…
「Ushahidi API の使用方法」をはてなブックマークに追加

linux sambaでwindowsとファイル共有

2010年09月28日 過去Blog
linux側の設定の参考サイト http://www.linuxmania.jp/samba_setting.html 日本語が文字化けする場合 [global]以下に次の3行を追加する # vi /etc/samba/smb.conf [global] dos charset = CP932 unix charset = UTF8 display charset = UTF8…
「linux sambaでwindowsとファイル共有」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy