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


ピックアップ記事

addressbook内のデータをtableViewに表示させる

2011年01月17日 過去Blog
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusab…
「addressbook内のデータをtableViewに表示させる」をはてなブックマークに追加

phpmyadmin のインポートサイズの最大値を変更する

2010年04月03日 過去Blog
php.iniを適当なサイズに変更します。 memory_limit 32M post_max_size 50M upload_max_filesize 50M php.iniを変更したら httpdをリスタートします。 service httpd restart これで、大きなサイズでもインポート可能になります。 cheapest generic xanax…
「phpmyadmin のインポートサイズの最大値を変更する」をはてなブックマークに追加

phpでGoogle ページランクを取得する

2009年11月24日 過去Blog
phpでGoogleのページランクを取得するプログラムを作りたいなぁと思っていたのですが、日本にはそれらしい情報が少なかったり、記事が見つかっても古くなっていて、現時点では正常に動作しないプログラムだったり、実際のページランクと違ったり、という状態がここ一週間ほど続いてました。 ページランクの取得にGoogleにクエリを送るのは規約違反ですし、GoogleのAPIなどを見てもページランクを取得で…
「phpでGoogle ページランクを取得する」をはてなブックマークに追加

objective-C 日時関連

2011年04月28日 過去Blog
http://d.hatena.ne.jp/KishikawaKatsumi/20081121/1227275688 http://unicode.org/reports/tr35/tr35-6.html#Date_Format_Patterns
「objective-C 日時関連」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy