Recovering Screenshots of Websites That No Longer Exist

When I rebuilt my portfolio, one problem took longer than expected. Some of the projects I am proudest of are no longer online. Organizations change direction, websites get replaced and hosting accounts expire. The work was real, but there was nothing left to show.

Rather than leave those projects without images, I set out to recover them. Here are the two methods I used and what I learned.

Method 1: Running the original code again

For some projects I still had the source code and a database backup. In theory, running them locally should be easy. In practice, code written ten or more years ago does not run on a modern server without help. I used Laragon on Windows, with current versions of PHP and MySQL.

A university journal system. The University of Dhaka faculty journal I built in 2020 was the easier of the two. After importing the database and adjusting the local connection settings, the public site ran. The administration area loaded without any styling, though. The cause was a small piece of code that detected the admin folder by checking a fixed position in the page address. It worked on the live server but not in a local folder with a different name. Replacing it with a position-independent check fixed every admin page at once.

A weekly news portal. Saptahik Deshojo, built in 2013, was harder. The database backup was not an SQL file but the raw data files of an older database engine, which modern MySQL cannot read directly. I installed a compatible database server temporarily, exported the data to a standard SQL file and imported it into MySQL. The code then needed updating for PHP 8:

  • The old mysql functions, removed years ago, were replaced with mysqli.

  • The old autoloading function, removed in PHP 8, was replaced with its modern equivalent.

  • A missing table was recreated before the homepage would load.

Once the site ran, I added a few sample advertisements in Bengali to fill empty banner spaces, so the screenshots showed the layout as it was designed.

Method 2: Using web archives

For projects without surviving code, the Internet Archive's Wayback Machine was invaluable. It had captured several of my old websites at different points in their lives, including corporate, NGO and engineering company sites.

Archived pages have limits. Icon fonts are often missing, so small empty squares appear where icons should be. Sections that load content with JavaScript, such as filterable project grids, may appear blank. I chose the sections that archived well and left out the ones that did not.

Presenting the results consistently

Recovered screenshots come in every shape, from compact desktop windows to very long full-page captures. To keep the portfolio consistent, every image is presented at the same 1440 × 900 size. My rule was never to cut off content in a misleading way. Where a page was too long, I either fitted the whole page with matching background space or ended the image at a natural break, such as the end of a table row.

Respecting privacy

Old systems contain real people's data, so every screenshot was checked before publishing. Email addresses and usernames in user lists were blurred. For an internal system that could not be shown at all, I used clearly labelled sample data instead of real records. Being honest about what a screenshot shows matters as much as the screenshot itself.

What I learned

Recovering old work was more rewarding than I expected. It showed how much web development has changed, from mysql functions to modern frameworks and from table layouts to responsive design. It also showed how much of the original thinking still holds up.

If you have an older PHP website that needs updating for modern servers, or a system you want to preserve before it disappears, get in touch.