我使用Apache作爲服務器, 我的index.php代碼HTML與PHP不工作
<?php session_start(); ?>
<html>
<my HTML code>
<?php
wait_file:{
// Do something to receive file.
}
else
{
goto wait_file;
}
}
detect_file:{
if(file_exists($file))
{
// do something with received file.
}
else
{
goto detect_file;
}
}
?>
</html>
,但是當我訪問的index.php, 網頁總是加載, 和我的背景圖片不顯示(這可能意味着HTML代碼不工作), 我認爲關鍵的一點是,我用「goto」,使if-loop等待文件,但我不知道如何解決它。
你是什麼意思?更加詳細一些。我不知道如果你真的甚至理解你的問題 – themis 2013-04-27 16:51:03
如果''總是加載'你的意思是它不*停止加載*,那麼你的PHP代碼是你的問題,*不* HTML。 – Kissaki 2013-04-27 16:53:07
我的index.php是空白的,我猜我的html代碼不工作。 – 2013-04-27 16:54:26