- 0
php Split directory contents into array.
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 3 answers
- 3,246 views
-
QNAP issues patch for an RCE security vulnerability affecting PHP in NAS Drive management
By Alap Naik Desai,
- remote code execution
- rce
- (and 12 more)
- 0 replies
- 6 views
-
Get this Dynamic 2022 Data & IT Security Training Bundle at 97% off
By News Staff,
- neowin deals
- cyber security
- (and 4 more)
- 0 replies
- 6 views
-
Save 98% off this 27 Course Premium Learn to Code Certification Bundle
By News Staff,
- neowin deals
- coding
- (and 10 more)
- 0 replies
- 9 views
-
Get the Complete 2021 Superstar Backend Developer Bundle for only $39.99
By News Staff,
- neowin deals
- sponsored
- (and 7 more)
- 0 replies
- 321 views
-
Question
Axel
So far I have this:
This loads the specified directory contents into an array which is a good start!
The array_diff function removes the . and .. from the array (linux server).
I'm then left with image1, image1_thumb, image2, image2_thumb, etc. in the array.
I want to split these into separate items, so that the image and the thumb associated with that image will each have it's own section in the array? I hope that makes sense.
Cheers,
Alex
Edit: urgh wrong section, should be in web design and programming.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts