IIS7 を実行している Web サーバーがあり、PHP 5.3 に更新しました。正常に動作しているように見える 2 つのサイトがあり、どちらも多少の PHP を使用しています。私が現在このサーバーでテストしているリビジョンは、おそらくもっと多くのものを使用しています。
私が直面している問題は、テスト サーバー (ローカルの XAMPP インストール) でページが正常に読み込まれることです。これをサーバーにプッシュしてブラウザでページにアクセスすると、次のようになります。
Id ) return true; } return false; } public static function PrintSelector($SelectionArray) { if( !isset($SelectionArray)) { Page::WriteLine("
No selections are available.
"); } else { $FoundViewer = false; foreach($SelectionArray as $Selection) { if( $Selection->IsViewing()) { $ViewerSelection = $Selection; $FoundViewer = true; } } if( $FoundViewer ) { Page::WriteLine("Show / Hide " . get_class($Selection) . " Selections"); $ViewerSelection->PrintOverview(); Page::WriteLine("
"); } Page::WriteLine("\n"); foreach($SelectionArray as $Selection) if( $Selection->IsSelectable() && !$Selection->IsViewing()) $Selection->PrintSelection(); Page::WriteLine("
\n"); if( $FoundViewer ) Page::WriteLine("
"); } } } ?>
これは、私の新しいサイトの基礎となるコードのほんの一部です。
さらに調査したところ、他のサイトの 1 つに行き、これを取得しました。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>AGP Credential Manager</title>
<link rel="stylesheet" href="styles.css" type="text/css" />
<script type="text/javascript">
function submitPageForm()
{
document.forms["pageForm"].submit();
}
function submitForm(formName)
{
document.forms[formName].submit();
}
</script>
<script language="javascript">
function toggleDiv(divid){
if(document.getElementById(divid).style.display == 'none'){
document.getElementById(divid).style.display = 'block';
}else{
document.getElementById(divid).style.display = 'none';
}
}
</script></head>
<body>
<div id="wrap">
<div class="header">
<!-- TITLE -->
<h1><a href="#">AGP Credential Manager</a></h1>
<!-- END TITLE -->
</div>
<div id="nav">
<ul>
<!-- MENU -->
ソースコードで。そして、あなたが推測できると確信しているように、私のフロントエンドにはあまりありません。PHP が実行を開始したように見えますが、明らかな理由もなく、数百行で失敗しています。
誰かがこれを以前に見たことがあり、たまたま修正を知っていたら、興味がありますか? 素晴らしいことだ。ありがとう。