sudo apt-get update && sudo apt-get upgrade
sudo apt-get install -y apache2
WSL 2, Oh-My-Zsh, Windows Terminal, Git, VS Code, and VcXsrv!
The Operating System: WSL 2
Ensure you are running Windows 10, Version 2004, Build 19041 or higher
If we have the following structure in our application:
- 📁 application_folder_name
- 📄 index.php
- 📄 handle_form.php
- 📄 main.js
And we fill our index.php
with the following content just to get a basic website with a form working. You should be able to run this through a php-server of your choice.
[Update 2024] - Take a look at Drupal at your fingertips. Lot's of great stuff there.
// Load file object
$file = File::load($fid);