Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    It’s unlikely to be a short bit of PHP code. First of all, your PHP needs the Zip module installed. Check the output from phpinfo(). If it’s not included, maybe your host can include it for your account.

    Second of all, Zip is comprised of rather low level functions. It’ll take some doing to walk through an entire directory structure to get a full directory tree suitable for output. In the end it may not be that extensive, but there is no handy built-in get_directory_tree() function either.

    Compile all desired output for the shortcode into a single variable that is returned by your shortcode handler.

    Thread Starter robin_dean

    (@robin_dean)

    Understood and thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Read Zip File Contents’ is closed to new replies.