File operation problems

Source: Internet
Author: User
I want to create an image Wall for file operations. if you have any of the following questions, I would like to ask:
1. does the linux file name Support '-' (middle bars?
2. can the image Wall be displayed by page? Similar to operating databases, but how does one display the operation file name by page?


Reply to discussion (solution)

1. generally, don't use this. isn't it a good underline?
2. yes. I have never done it, but I have seen it on pages. You can think about it. it is impossible for an image Wall to display unlimited images, for example, thousands of images? When a certain condition is reached, it is regarded as the end. this condition can be used as the basis for paging.

1. support
2. Yes. many third-party libraries are mainly JS libraries.

1. yes
2. Yes. waterfall streams are generally used for image walls, and paging is also acceptable.
However, the list of Retrieved files can only be all. when planning, you can read the list by subdirectory.
Generally, the glob function is used to retrieve the file list to the array, and then continue the output from the last output position.

I want to read it cyclically first, and then use 20-50 like the database LIMT to show the image until 20. is that all right?

$ A = glob ('directory /*');
Foreach (array_slice ($ a, 20, 30) as $ f ){
Echo $ f;
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.