MAMP让我很难过

问题描述 投票:-2回答:1

所以这就是事情。我一直在'尝试'使用MAMP已经有一段时间,但它并没有那么顺利。我使用PHPStorm与MAMP 5.6.10,我遇到了问题。

这是使用MAMP服务器与SFTP服务器完成的测试。

使用POST enter image description here的形式来自MAMP的结果:enter image description here

服务器在SFTP enter image description here上的结果

我只花了两个小时调试代码,然后决定只做这个测试,发现MAMP是给我问题的那个。你对此有什么建议吗?或者我应该切换到MAMP以外的其他东西? (我在OS X上)。

编辑:HTML表单:

<html>
<head>
    <title>Form</title>
</head>
<body>

<h1>Enter your name</h1>

<form method="post" action="index.php">
    <input type="text" name="username">
    <input type="submit">
</form>

</body>
</html>

PHP

<?php

echo "<h1>Hello " . $_POST["username"] . "</h1>";

?>

问题出在WebStorm上,我没有为MAMP配置它,因此它使用了集成服务器

php webserver mamp interpreter
1个回答
1
投票

我也使用OS X和MAMP,我只是测试它..它工作正常..

enter image description here

所以或问题不是MAMP或MAMP没有安装像和应该..您可以尝试重新安装它或检查问题是否不在其他地方..

我真的很喜欢MAMP ..

© www.soinside.com 2019 - 2024. All rights reserved.