简体   繁体   English

具有Scandir的下载的模板不会扫描当前文件夹

[英]Downloaded template that has a Scandir wont scan current folder

I downloaded a free Template named "Cute File Browser" and it has a directory scanner. 我下载了一个名为“ Cute File Browser”的免费模板,它带有目录扫描程序。 It ATM scans a folder named files, but i want it to scan it's own folder "Current folder" i have tired using (./) and some other stuff. 它的ATM扫描名为文件的文件夹,但是我希望它扫描它自己的文件夹“当前文件夹”,我已经厌倦了使用(./)和其他一些东西。

But that didn't work at all ! 但这根本没有用! Here is pastebin for the php code: http://pastebin.com/iR6ts0x4 这是PHP代码的pastebin: http : //pastebin.com/iR6ts0x4

Not sure what to do, and i want it to scan it's own folder. 不知道该怎么办,我希望它扫描它自己的文件夹。

I want to use this template because i do not know how to code something myself and i dont want to pay for a template to be made, this one is simple and looks easy to use. 我要使用此模板,因为我自己不知道如何编写代码,并且我不想为要制作的模板付费,这是一个简单且易于使用的模板。 I just need it to work my way :) 我只需要它按照我的方式工作即可:)

Thank you ! 谢谢 !

I just tested it with just a . 我只是用一个测试。 and it scans "Current folder". 并扫描“当前文件夹”。

$dir = ".";

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM