I have a HTML file
这是不相关的
and a PHP file
OK
in the same folder on the remote server.
不相关
From the URL, I call the HTML file
这是毫无意义的gobbedy性国 我想你从你所说的HTML文件
and the HTML file calls the PHP file when form is submitted.
不,它不需要的URL浏览器的意思。我猜测HTML文档中表单的动作是PHP脚本的URL。
But it is not going correctly. When I submit the Form, it dislays error:
500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.
PHP作为一种解释型语言是不可能和好如初 - 这并不是说,它不会发生 - 只是它的罕见。
您是否检查过PHP脚本以查看它是否可能返回500状态消息?
难道只有这个PHP脚本是这样死吗?即你有其他PHP脚本不会崩溃吗?
您使用的是什么webserver?解释器是否作为模块运行? CGI?快速CGI?
如果将PHP脚本的URL直接粘贴到浏览器中会发生什么?
您是否尝试谷歌的“PHP”和错误信息? (提示:514000结果中的前10个都可以解释何时发生这种情况以及为什么会发生这种情况)。
C.
信息Apache的错误日志没有人可以肯定地知道。看看Apache的'error.log',每500的原因记录在那里。 – 2010-03-18 15:31:39
如果您想要特定的解决方案,您将需要提供更多信息。 PHP页面的源代码特别有用。 – 2010-03-18 15:32:54
检查您的路径并提供更多信息以获得更多帮助。 – Abs 2010-03-18 15:35:14