http://net.tutsplus.com/tutorials/php/online-file-storage-with-php/comment-page-2/#commentsのチュートリアルを実行していました が、次のようになるまで問題なく動作していました。
if(strlen($message) > 0)
{
$message = '<p class="error">' . $message . '</p>';
}
この php 行は index.php にあります。Firefox でページを数ページ表示すると、php パーサーが大なりで止まっているように見えます。キャラクターから逃げることはできますか?する必要がありますか?
編集:すべてのphpコード:
<?php
//Load the settings
require_once("settings.php");
$message = "";
//Has the user uploaded something?
if(isset($_FILES['file']))
{
$target_path = Settings::$uploadFolder;
$target_path = $target_path . time() . '_' . basename( $_FILES['file']['name']);
//Check the password to verify legal upload
if($_POST['password'] != Settings::$password)
{
$message = "Invalid Password!";
}
else
{
//Try to move the uploaded file into the designated folder
if(move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) {
$message = "The file ". basename( $_FILES['file']['name']).
" has been uploaded";
} else{
$message = "There was an error uploading the file, please try again!";
}
}
//Clear the array
unset($_FILES['file']);
}
if(strlen($message) > 0)
{
$message = '<p class="error">' . $message . '</p>';
}
?>
<html> ... </html> //my html code