我有一个看起来像这样的 Netbeans php 项目:
PhpProject/
projets/
uploadImage/ **resize.php** the file I run
assets/...
inc/ **empty.png** file I asked in a <img> html tag in the php file.
问题是:我在层次结构中的每个文件调用中得到 404,无论文件夹是什么。
我尝试将 empty.png 放在与 resize.php 相同的文件夹中,效果很好。
我在 linux Kali 上,我在项目中寻找权限,这似乎处于只读模式。 层次结构是在 Netbeans 上创建的。
我刚刚注意到 resize.php 中的这一行有效。所以它可以找到并访问文件夹中的文件。
<link rel='stylesheet' href="inc/styleSheet.css">