tableView に関する設定の説明です。
テーブル内のセクション数を設定する
以下の例では、2つのセクションをもつテーブルになります。
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 2;
}
セクション内の行数を指定する
以下の例では、最初のセクションは、2行のデータを表示し、次のセクションでも2行のデータを表示します。…
■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
graffiti on the web
この投稿へのコメント
コメントはまだありません。