0
看起來好像我簡單的php echo語句不允許我顯示頁腳欄。當我註釋掉我的php代碼並查看我的文件時,頁腳欄會顯示。當我的php運行時,它不顯示我的頁腳。任何幫助都會很棒。Jquery移動頁腳欄不顯示
<!DOCTYPE html>
<html>
<head>
<title>Mobile</title>
<!-- Include Jquery Mobile dependancies -->
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>Page Title</h1>
</div><!-- /header -->
<div data-role="content">
<?php
$Contents = file_get_contents("http://www.fsb.muohio.edu/directory");
$outer= explode('<div id="c1">',$Contents);
$inner = explode('<div id="c2"', $outer[1]);
$placeholder = array('<table border="0">',"</table>",'<tr>','</tr>','<td>','</td>');
$replace = array("","","","<br/>","","");
$finished = str_replace($placeholder, $replace, $inner[0]);
echo $finished;
?>
</div><!-- /content -->
<div data-role="footer">
<h4>Page Footer</h4>
</div><!-- /footer -->
</div><!-- /page -->
</body>
</html>
我從file_get_contents()獲得的標記是無效的。謝謝 – JDV590 2012-02-16 21:20:32