我使用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