无法加载资源:服务器响应状态为403(禁止)旋转器.php

时间:2017-08-22 00:10:39

标签: php mamp http-status-code-403 drupal-8 image-rotation

我正在网站上工作,我正在尝试安装一个简单的图像旋转器,每隔x秒更改一次背景。但我得到这个看似简单的错误消息告诉我,我不允许访问该文件。即使我已经是这个文件的所有者。有问题的文件是rotator.php

Html控制台错误:

GET http://localhost/themes/custom/voorbereiding_theme/images/backgrounds/rotator.php 403 (Forbidden)

Failed to load resource: the server responded with a status of 403 (Forbidden) rotator .php

我已经尝试更改我现在的所有者,我尝试删除rotator.php并从头开始重新制作但似乎没有任何工作?

这是我在css文件中调用的rotator.php的路径(rotator.php找到了正确的图像):

background: url("../images/backgrounds/rotator.php");

如果我将其更改为

background: url("../images/backgrounds/background1.jpg"); 

它工作正常,但它不会使用rotator.php文件,它不会旋转图像。

我希望有人能够帮我解决这个问题,我已经被困了好几个小时。我可能会遗漏一些非常明显的东西,但我无法看到它。

其他信息:

Windows 7。

将drupal 8与MAMP和作曲家结合使用。

windows explorer = "C:\MAMP\htdocs\themes\custom\voorbereiding_theme\images\backgrounds\rotator.php"

中rotator.php的路径

0 个答案:

没有答案