错误 - 403禁止,您无权访问此页面 -

时间:2015-10-27 11:20:27

标签: php ios

我有一个与我的网络服务器上的PHP脚本链接的IOS应用程序。

问题:

当我的IOS应用程序尝试从我的PHP脚本中检索数据时,我经常会收到以下错误(有时我不会):

<HTML><HEAD>
<TITLE>Forbidden [403]</TITLE>
</HEAD><BODY>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr><td><font size="6"><b>403 Forbidden</b></font></td>
<td>
<p align="right"><a href="http://www.servage.net/" target="_black">
<img border="0" src="http://www.servage.net/img/content-logo.gif"></a></td>
</tr>
</table>
<br>
You are not allowed to access this page. Possible problems:<ul>
  <li>Missing index file</li>
  <li>Misconfigured mod_rewrite settings in .htaccess</li>
  <li>Authentication Failure</li>
  <li>Incorrect file or folder permissions</li>
</ul>
<P>
<HR>
<ADDRESS><a href="http://www.servage.net/" target="_black">Servage.net</a> Clustered Webhosting running enhanced Apache Webserver</ADDRESS>
</BODY></HTML>

我不知道是什么导致它,因为我正在使用echos从我的php脚本中检索信息并在我的.m文件上使用这些信息。可以告诉我什么会导致这个问题吗?

修改

我的PHP脚本很简单:

  • 我连接到数据库。
  • 通过POST请求获取用户通过IOS应用程序发送的内容。
  • 使用db做一些工作。 (更新,插入等)
  • 回应结果。 (结果可以是表格或简单整数的任何地方)

0 个答案:

没有答案
相关问题