初学php,想用zend调试php卡了好些天,求好心人帮忙;环境描述:
  1.装了Zend Studio 9.0.2 
  2.装了Zend Server Community Edition,含调试插件Zend Debugger
  3.两个测试页面,一个提交页面,一个Php逻辑处理界面,分别是submit.htm/upload_file.php
  4.submit.htm代码如下:
<html>
<body><form action="upload_file.php" method="post" enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file" /> 
<br />
<input type="submit" name="submit" value="Submit" />
</form></body>
</html>
  5.upload_file.php代码如下:
<?php
if($_FILES["file"]["size"] < 20000)
{
if ((($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES["file"]["type"] == "image/pjpeg")) {
if ($_FILES["file"]["error"] > 0)
{
echo "Error: " . $_FILES["file"]["error"] . "<br />";
}
else
{
echo "Upload: " . $_FILES["file"]["name"] . "<br />";
echo "Type: " . $_FILES["file"]["type"] . "<br />";
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
echo "Stored in: " . $_FILES["file"]["tmp_name"];
}
}
else
     echo "Invalid file";
}
else{
echo "图像太大";
}
?>
--------------------------------------------------------------------------------------------------------------
问题是:我在.php文件里头个条件中,设置了断点,即if($_FILES["file"]["size"] < 20000)
对submit.htm进行run As提交时,跳到upload_file.php会直接报错,报错如下:
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
求解决方法,无头绪啊............

解决方案 »

  1.   

    前两天,写的。虽然简单,凑合看
    http://blog.csdn.net/mengxiangbaidu/article/details/7516708
      

  2.   

    感谢啊,可以了,,不过我现在有另外一个疑问:
      我直接在.php直接设置断点是可以的进行调试,我现在想通过执行.htm的提交后跳到.php的断点,要怎么弄啊?
      

  3.   

    另外新建工程的时候,为什么localhost php project 与project在代码纠错上有明显区别,前者要是语法出错,会标出来,而后者没反应