![]() |
Problems with arrays
Well first off I'm an absolute PHP novice but have managed to combine numerous php snippets and free scripts/plugins to create my own sort of cms. Im having a problem with the dUnzip class. I have made my script so a user can fill out a form, upload a zip which is then extracted autmatically to the server.
For security reason I need to check the files in the archive zip before extracting. If there are php files, exe or other file extensions which are not safe the zip is not extracted. I was told by the creator of the dUnzip class to use: PHP Code:
Output from above snippet is in the form: Code:
ArrayAdvertising spot can be arranged for someone who helps :) 125x125 above fold on PR6 decent traffic website. |
It looks like the file information is stored in an associative array (but that's not particularly important here). To get at the file names you can use the
file_name key on each of the main array items.For example: PHP Code:
|
You are my new best friend :-D All implemented and working dandy.
|
| All times are GMT. The time now is 05:55 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0