サーバーとして Apache を使用しています。私の index.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 にアクセスすると、Webページは常に読み込まれ、背景画像が表示されません(HTMLコードが機能していない可能性があります)。キーポイントは、「goto」を使用してif-を作成したことだと思いますファイルを待つためにループしますが、それをsloveする方法がわかりません。