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


ピックアップ記事

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 の使用方法」をはてなブックマークに追加

Drupalをサーバから削除する

2011年05月10日 過去Blog
以下のファイルが削除出来ないので、このファイルとこのファイルより上の階層のパーミッションを777にすれば削除可能になりました。 default.settings.php settings.php
「Drupalをサーバから削除する」をはてなブックマークに追加

Linux ユーザー一覧の確認

2010年02月02日 過去Blog
[hogehoge@localhost ~]$ cat /etc/passwd http://kazmax.zpp.jp/lin/etc_passwd.html is garcinia cambogia safe to take…
「Linux ユーザー一覧の確認」をはてなブックマークに追加

WHOIS pending delete から 取得可能になるまで

2010年03月24日 過去Blog
中古ドメインを探す際、whois の pending delete 表示から取得可能になるまでの期間は5日間? …
「WHOIS pending delete から 取得可能になるまで」をはてなブックマークに追加

iOS 4.2 sdkのABGroupAddMemberにバグ

2011年01月25日 過去Blog
ABAddressBookに関するアプリを勉強していたのですが、ABGroupAddMember が機能せず、困っていました。 日本語サイトでは情報が見当たらなかったので、いろいろ海外のサイトを調べていると同じように困っている方が大勢いるようでした。 …
「iOS 4.2 sdkのABGroupAddMemberにバグ」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy