How to Upgrade AutoIndex to PHP 8

Back in April 2018 I posted a fix so AutoIndex users could use this fantastic web folder directory listing utility with PHP 7. That fix does not work with PHP 8.  Updating the AutoIndex code to work with PHP 8 was taking more time than I had to do a good job. In my opinion it is much harder to update and fix someone else’s code than it is to work on your own source files.

So you can imagine my excitement when I got a blog comment from Thierry informing me about an updated version of AutoIndex that works with PHP 8.0, 8.1, and 8.2. I immediately downloaded the new code and installed in on my projects using the older version of AutoIndex.

After running the PHP 8 version of AutoIndex on several virtual hosts which use PHP 8.2, I can confirm that the new version of AutoIndex works great. It also works with the responsive theme I posted back in 2017.

You can download the new version of AutoIndex for PHP 8 at this link:
https://github.com/Dark1-dev/AutoIndex-Php8

If you are new to GitHub, click on the green “Code” button and then select “Download ZIP” from the dropdown list.

I also posted a ZIP file of the new version in my blog downloads folder (which is running the updated version of AutoIndex for PHP 8):
https://blog.beausanders.org/downloads/

CREDITS: Thank you Dark1 for developing the upgrade to PHP 8 and SeriousBuggie for his contribution to that project. Thank you to Thierry for letting me know about Dark1 and SeriousBuggie’s work.

 

 

Share This Post

2 comments

  1. Dark1 says:

    Hey,
    How’s it going? Dark1 here. I feel proud that you like my work and have featured it on this site. Been looking online for responsive themes for this when I found your site (Thank you very much for that btw, I am using it on my site) a while before i started work on making AutoIndex work with php8 for 333networks.com. I’m a very big fan of your blog and website. Never thought I’d get mentioned on your site haha. Seriously though, I appreciate it. Never thought anyone other than me would find it useful.

    Also do update the zip on your downloads page. I have pushed out some fixes for the translations files that would make the server not work properly if using a different system language (Thanks to Killr and Dazawassa for accurate Russian and Portuguese translations respectively). It’ll hopefully make your server more usable if someone were to browse with those languages set as their system language.

    Sincerely,
    Dark1

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.