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. Continue reading “How to Upgrade AutoIndex to PHP 8”

How to Upgrade AutoIndex to PHP 7

I posted back in September 2017 that I am a fan of the AutoIndex 2.2.4 PHP script. See my post “Bootsrap 3 Responsive Template for AutoIndex PHP Script“.

Many ISPs and web designers are moving to PHP  7.x, the current version of PHP.  Unfortunately this causes AutoIndex 2.2.4 to stop working. It will throw an error referring to a magic_quotes function call on line 122 of the index.php file:

Fatal error: Uncaught Error: Call to undefined function set_magic_quotes_runtime()

The magic_quotes function was taken out of PHP 7.x. But have no fear, it turns out that the solution is not too difficult.   Continue reading “How to Upgrade AutoIndex to PHP 7

Bootstrap 3 Responsive Template for AutoIndex PHP Script

For years I have been a big fan of the AutoIndex PHP Script written by Justin Hagstrom. This is a powerful website directory indexer and file manager. I primarily use it to manage download directories. The problem is that Mr. Hagstrom has not updated this script since 2007. It is not natively responsive for small screens. Since most browsing is done on cell phones or tablets these days, I created a simple Bootstrap 3 responsive template to solve this problem. I also created a mod to change the format of the Search box in AutoIndex. I think there are other AutoIndex users that might benefit from this template and mod, so I am sharing them in this post. Continue reading “Bootstrap 3 Responsive Template for AutoIndex PHP Script”