I'm using Apache as a server, my index.php code is
<?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>
but when I visit index.php , the webpage is always loading, and my background picture doesn't show(it may means HTML code are not working), I think the key point is that i used "goto",made the if-loop to wait for file, but i don't know how to slove it .