phpを外部呼出で表示されない

このQ&Aのポイント
  • モバイルサイトのCGIのカウンターをPHPのカウンターに変更しようとしたが、呼出しても携帯とパソコンで表示されない問題が発生している。
  • XREAの137鯖で運営しているモバイルサイトで、ハンターリンクさんの絵文字カウンタを設置したが、PHPファイル自体は変更していない。
  • 設置した絵文字カウンタをインクルードで呼び出しても、携帯とパソコンで表示されずに困っている。
回答を見る
  • ベストアンサー

phpを外部呼出で表示されない

自分はモバイルサイトを運営しておりまして、 CGIのカウンターからPHPのカウンターに変更しようと思いました。 そしてハンターリンク(http://ezch.org/)さんの 絵文字カウンタが良いと思い、早速設置しました。 しかしインクルードで呼び出しても、 携帯andパソコンで表示されません。 PHPファイル自体は弄ってません。 鯖はXREAの137鯖です。 以下が呼出部分までのソースです。 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <META http-equiv="Content-Style-Type" content="text/css"> <META http-equiv="pragma" content="no-cache" /> <META http-equiv="cache-control" content="no-cache" /> <TITLE>auMusic</TITLE> <STYLE TYPE="text/css"> <!-- body {background:fixed url(p/logo.jpg) #ffffff no-repeat bottom right;} body {border-style:solid;border-color:#FF8C00;border-width:5px;} a:hover { color:##0000ff; } A{text-decoration:none;} --> </STYLE> </HEAD> <BODY bgcolor="#ffffff" vlink="#ff0000" alink="#ff0000" link="#ff0000"> <CENTER> <HR width="100%" size="6" noshade color="red"> <div align="center"><IMG src="au_Music.gif" border="0"></div> </CENTER> <HR width="100%" size="6" noshade color="red"> <HR align="center" width="95%" size="1"> <?include("count.php");?>

  • PHP
  • 回答数1
  • ありがとう数1

質問者が選んだベストアンサー

  • ベストアンサー
  • inu2
  • ベストアンサー率33% (1229/3720)
回答No.1

<?php include("count.php");?> ではだめ? それと、設置してる場所(パス)は合っていますか?

aumusic
質問者

お礼

ぁ、すみません。 indexをPHPで構築していなかったのが原因でした。 ご迷惑をお掛けしました。

関連するQ&A

  • 下記のソースですが、画面一杯に表示されません、なぜでしょうか?

    <HEAD> <META http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows"> <META http-equiv="Content-Style-Type" content="text/css"> <META name="IBM:HPB-Input-Mode" content="mode/flm; pagewidth=750; pageheight=900"> <TITLE></TITLE> </HEAD> <BODY bgcolor="#FFFFFF" text="#663300" link="#0000FF" vlink="#99CCFF"> <DIV style="top :0px;left : 0px; position : absolute; z-index : 1; width : 750px; height : 900px; visibility : visible; " id="Layer1"> <CENTER> <TABLE width="100%" border="0" cellspacing="0" cellpadding="5" bgcolor="#68B921"> <TR ALIGN="CENTER" VALIGN="MIDDLE"> <TD><IMG src="" width="111" height="96" alt="アイコン"></TD> <TD WIDTH="100%" VALIGN="TOP"></TABLE> </CENTER> </DIV> </BODY> </HTML>

  • 表示すると文字化けします

    下記のファイルが表示されると文字化けしてエンコードを修正しないとみれませんなぜでしょうか? 日本語EUCになってしまします。 <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=EUC-JP"> <META http-equiv="Content-Style-Type" content="text/css"> <TITLE></TITLE> <META http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <META http-equiv="Content-Style-Type" content="text/css"> </HEAD> <BODY> <TABLE border="1"> <TBODY> <TR> <TD bgcolor="#ffff00" width="699"><B><FONT size="+2">登録ありがとうございました</FONT></B></TD> </TR> <TR> <TD height="99" width="699"><B>■<A href="http*************************">使いこなすために</A>手順に沿って進んでください</B>→<A href="http**************************">次へ進む</A></TD> </TR> </TBODY> </TABLE> </BODY> </HTML>

    • ベストアンサー
    • HTML
  • (超初心者)ウインドウサイズを小さくするには。

    今、HPB9.0にて、以下のページに対し、 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <META http-equiv="Content-Style-Type" content="text/css"> <TITLE></TITLE> </HEAD> <BODY> <TABLE border="0"> <TBODY> <TR> <TD height="0" align="center" width="248"><FONT color="#ff0000">パスワードが誤っています。<BR> 再度入力して下さい。</FONT></TD> </TR> </TBODY> </TABLE> </BODY> </HTML> 以下のような記述で、サイズを指定したいのですが、 <script type="text/javascript"> <!-- window.resizeTo(300, 300); // --> </script> どこに(どのように)記述をすれば良いでしょうか? ご教示下さい。

  • 表示のソース

    ネットのツールバーの中にある表示のツールはどういうときに利用するのでしょうか。下記は一例ですけど、ソースだから掲示板やなんかで大体どこから投稿されたかわかる のでしょうか Quote <HTML> <HEAD> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=x-sjis"> <TITLE>新・企業会計実務Q&A掲示板</TITLE> <style type="text/css"> <!-- .mes { border-style: ridge; border-width: 0px 0px 0px 0px; border-color: #f5f5f5; } --> </style> </HEAD> <BODY BGCOLOR="#ffffff" TEXT="#000000" ALINK="#003399" LINK="#0000ef" VLINK="#800080" > Unquote

  • body要素

    body要素のCSSをうまく反映させることができません。 table_testを画面中央に表示させて、全体の背景色を赤にしたいのですができません。 どこが違うのでしょうか? ご教授ください。 よろしくお願いします。 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <META http-equiv="Content-Style-Type" content="text/css"><TITLE></TITLE> <style type="text/css"> <!-- .body { text-align:center; margin-right:auto; margin-left:auto; bgcolor:red; } .table_test { width:700px; border-style:solid; border-color:blue; border-width:1px; margin-right:auto; margin-left:auto; //--> </style> </head> <body> <table class="table_test"> <tr> <td> </td> </tr> </table> </body> </html>

    • ベストアンサー
    • HTML
  • tableの縦横センタリングについて

    お世話になります。 html4.01のhtmlのDOCTYPEですが、URL付きに変更しました。 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">     ↓ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> そうしたところ、tableのセンタリングがされなくなってしまいました。 css指定で、横のセンタリングはできたのですが 縦方向がどうしても、topの位置になってしまいます。 ネット検索したところ、いろいろ解決策があるのですが、どれを試しても どうしてもうまくいきません。 どこがダメなのか、アドバイスお願いできないでしょうか。 ソースコードを以下に記します。 tableのborde色を赤にしています。 この赤が、画面横縦に中央に表示されるようにしたいのです。 画面サイズを変更しても。 よろしくお願いします。 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="ja"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"> <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <meta http-equiv="Content-Language" content="ja"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <style type="text/css"> <!-- body{ background-color:#f5f5dc; } .container { display: table; width:100%; height:100%; } .contents { display: table-cell; vertical-align: middle; } --> </style> <title>test</title> </head> <body> <div class="container"> <div class="contents"> <table style="width:100%;height:100%;border:1px solid red;" cellpadding="0" cellspacing="1" summary="test"> <tr> <td style="text-align:center;vertical-align:middle;">    <input type="button" value="新規"></td> <td style="text-align:center;vertical-align:middle;">    <input type="button" value="変更"></td> </tr> <tr> <td style="text-align:center;vertical-align:middle;" colspan="2">    <input type="button" value="戻る"></td> </tr> </table> </div> </div> </body> </html>

    • ベストアンサー
    • CSS
  • 上手く表示されない。

    http://www.netmania.jp/  ネットマニアのPHPの説明を参考にPHPを作っているのですが、このページのテンプレート112を改造してつくったのですが、上手く動きません。アドバイスください。 ↓タグ <html><head> <title>タイトル</title> <META http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <META NAME="keywords" content="***"> <meta name="description" content="***"> <LINK rel="stylesheet" href="style_main.css" type="text/css"> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <?php require("joubu.txt"); ?> <table width="800" border="0" cellspacing="0" cellpadding="0" align="center" style="border-color:#cccccc; border-width:1px; border-style:solid;" height="345"> <tr valign="top"> <td width="160" style="BORDER-RIGHT: #CCCCCC 1px solid" bgcolor="#F0F0F0"> <?php require("menu.txt"); ?> </td> <td colspan="2"> <?php require("main.txt"); ?> </td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0" align="center" style="BORDER-LEFT: #CCCCCC 1px solid; BORDER-RIGHT: #CCCCCC 1px solid "><tr> <td width="3"><IMG src="002.gif" width="3" height="22"></td> <TD width="797" background="002.gif" align="center"> <?php require("under.txt"); ?> </TD></tr></table> <?php require("copyright.txt"); ?> </body></html>

    • ベストアンサー
    • PHP
  • CSS今度は外部ファイル!

    前回「CSSが反映されない」で質問させていただきました。 おかげさまで、ヘッダー内で記述したものが、反映されるようになりました。 ところで、今度は外部ファイルの読み込みで「できない!」となっています。 自分ではどこがいけないのか、発見できなかったので、また皆さんのお力をいただきたいと 思います。 ○abc.css(外部ファイル) .body{ color:#006666; font-size:30px; } ○HTMLファイル <! DOCTYPE PUBLIC HTML "-//W3C//DTD HTML 4.01 Transitional//EN"> <html lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html;charaset=shift_jis"> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"> <!-- <link rel="stylesheet" href="abc.css" type="text/css"> --> </style> </head> <body> 背景色は濃い青緑です<br> フォントサイズは30px・・・<br> <br> になるはずです・・・ </body> </html> ・・・結果・・・ 真っ白な画面に標準フォントで表示。 ○外部ファイル .hp-name{ font-size:55px; color:#006666; text-align:center; } ⇒ファイル名 hp-name.css ○HTMLファイル <! DOCTYPE PUBLIC HTML "-//W3C//DTD HTML 4.01 Transitional//EN"> <html lang="ja"> <head> <meta http-equiv="Content-Type"Content="text/html;charaset=shift_jis"> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"> <!-- <link rel="stylesheet" href="body.css" type="text/css"> --> </style> </head> <body> <div class="hp-name"> HP名は「○○△△◇◇」です </div> ////////////////////////////////////////////////////////////////////////////////////// 今度はどこがいけないのでしょう。 <link rel・・・・・・・・ で、外部ファイルを読み込むだけではいけないのでしょうか? それとも、外部ファイルの書き方がいけないのでしょうか? 外部ファイルには「スタイルシートの部分だけ」記述すればいいと思っていたのですが・・・ ○外部ファイルを <style type="text/css"> <!-- --> </style> をつけてみたのですが、ダメでした

  • 拡大/縮小表示について

    HTMLにおいて 現在、ブラウザを横に拡大すると、タイトルなどブラウザの拡大/縮小にに合わせて自動的に 拡大・縮小してしまいます。 これを ブラウザを拡大しても表示しているタイトルなどは固定のサイズで表示し 縮小すると、固定のサイズで表示しスクロールバーを表示したいのですがどうすればいいでしょうか アドバイスください。 現状 <空白>-------タイトル1--------<空白> <空白>初めての方-------------<空白> <空白>------ホームページに戻る<空白> 拡大すると <空白>------------タイトル1-------------<空白> <空白>初めての方-----------------------<空白> <空白>----------------ホームページに戻る<空白> 縮小すると <空白>-----タイトル1----<空白> <空白>初めての方-------<空白> <空白>ホームページに戻る<空白> こんな感じです。(わかりにくてすいません。) これを 拡大すると <空白><空白>-------タイトル1--------<空白><空白> <空白><空白>初めての方-------------<空白><空白> <空白><空白>------ホームページに戻る<空白><空白> 縮小すると <空白>-------タイトル1-- <空白>初めての方------- <空白>------ホームページ <---スクロールバー表示-----> にしたいのですが? 関係ある部分を抜粋しました *HTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja"> <head> <title>検索</title> <meta http-equiv="Pragma" content="No-Cashe" /> <meta http-equiv="Cache-Control" content="No-Cache" /> <meta http-equiv="Content-Type" content="text/html;" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <link type="text/css" rel="stylesheet" href="search.css" /> <body > <h1 align="center" >タイトル1</h1> <p align="left" style="font-size:12px; margin-left:5px;">初めての方</p> <p align="right" style="font-size:12px; margin-right:5px;">ホームページに戻る</p> </body> <HEAD> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> </HEAD> </html> *css html, body, body{ height:100%; } html{ overflow-y:scroll; } body{ /* width:100%; org */ width:80%; /* margin:0px; */ margin:0 auto auto auto ; padding:0px; background:#fff; color:#000; font-size:1em; font-family:Verdana, sans-serif,"MS Pゴシック", "MS P Gothic","Osaka",Arial,Helvetica; } a:link, a:visited{ color:#5555ff; /* text-decoration:none; */ text-decoration:underline; } a:hover{ color:#5555ff; /* text-decoration:none; */ text-decoration:underline; } a:active{ color:#c00; } input{ padding:2px; font-size:12px; } img{ border:0; vertical-align:middle; } hr{ height:1px; /* width:620px; */ width:640px; border:1; border-bottom:1px solid #cddcf2; } p{ margin:.5em 0; } input{ vertical-align:middle; } form{ padding:0; /* margin:0; */ /* margin:auto; */ } strong{ color:red; } /* h1,h2,h3{ margin:0; } */ h1{ margin:0; align:center; /* width 80%; */ /* font-size:1.5em; */ font-style:normal; font-size:22px; /* background: #43a917 none repeat scroll 0%; */ background: #777788; color:#eeeeff; line-height:1em; padding: 7px 7px 5px; text-align:center; } /* h2{ font-size:1.3em; background: #d3ebc3 none repeat scroll 0%; color:#4b962a; margin-top:1em; padding: 7px 7px 5px; text-align:center; } h3{ font-size:1.0em; } */ address{ font-style:normal; font-size:12px; font-family:"Lucida Sans Unicode"; } .pcenter{ text-align:center; } .message{ padding:5px 10px; background:#dfffc0; border:2px solid #fff; } #footer{ /* background: #d3ebc3; */ background: #ccccdd; color:#000; height:16px; padding:3px; text-align:center; }

    • ベストアンサー
    • HTML
  • 背景画像のX方向繰り返し表示を止めたい

    掲題の通り、X方向のみ背景画像が繰り返し表示されてしまいます。 テキストスペースも中央部のみの640ピクセルに収まるようにしていますが、背景画像の記述方法が解りません。 制御部分のソースは下記の通りです。 宜しくお願いします。 <HEAD> <META http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> <META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows"> <META http-equiv="Content-Style-Type" content="text/css"> <TITLE></TITLE> <STYLE type="text/css"> <!-- body { background-image: url(img/bg.jpg) background-repeat:no-repeart; } --> </STYLE> </HEAD> <BODY text=#333333 background="img/bg.jpg"> <TABLE cellspacing="0" width="630" align="center" border="0"> <TBODY> <TR> <TD align=middle> <TABLE width="100%" border="0"> <TBODY> <TR> <TD align=center bgColor=#228b22><STRONG><FONT color=#ffffff>『ご挨拶』</FONT></STRONG></TD></TR>

    • ベストアンサー
    • HTML

専門家に質問してみよう