我正在使用php和mysql创建一个网站。但是现在我想插入一个产品,当我使用此URL localost/ecommerce/admin_area/insert_product.php
插入产品时,我收到此错误:
找不到对象!
在此服务器上找不到请求的网址。
如果您手动输入了网址,请检查您的拼写,然后重试。 如果您认为这是服务器错误,请与网站管理员联系。
错误404 localhost Apache / 2.4.17(Win32)OpenSSL / 1.0.2d PHP / 5.6.14
这个问题的解决方案是什么?
我的代码
<!DOCTYPE>
<html>
<head>
<title>Inserting Product</title>
</head>
<body>
<form action="insert_product.php" method="post" enctype="multipart/form-data">
<table align="center" width="1000">
<tr>
<td>
<h2>Insert New Post Here</h2>
</td>
</tr>
</table>
</form>
</body>
</html>
答案 0 :(得分:0)
如果localhost不工作,请尝试127.0.0.1
http://127.0.0.1/ecommerce/admin_area/insert_product.php
并查看insert_product.php是否具有755权限